Last active
January 5, 2022 07:47
-
-
Save connor-davis/eabac7517d6086f653870e14bfe678fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
ipfs: { | |
preload: { | |
enabled: false | |
}, | |
config: { | |
Addresses: { | |
Swarm: [ | |
'/dns4/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star', | |
'/dns6/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star', | |
] | |
} | |
} | |
} | |
} | |
/** | |
* Here IPFS is any instance of ipfs we use, I usually use the ipfs-core cdn script url. | |
*/ | |
export const initIPFS = async () => { | |
return await IPFS.create(Config.ipfs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment