Skip to content

Instantly share code, notes, and snippets.

@studna

studna/dfx.json Secret

Last active February 17, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save studna/f2e496b7385500fadcbfb0f3ad78379a to your computer and use it in GitHub Desktop.
Save studna/f2e496b7385500fadcbfb0f3ad78379a to your computer and use it in GitHub Desktop.
{
"canisters": {
"hosting": {
"frontend": {
"entrypoint": "dfinity/entrypoint.js"
},
"source": [
"build"
],
"type": "assets"
}
},
"dfx": "0.6.21",
"networks": {
"ic": {
"providers": [
"https://gw.dfinity.network"
],
"type": "persistent"
}
},
"version": 1
}
// located at ./dfinity/entrypoint.js
const canisterId = window.location.hostname.split('.').shift();
console.log('You are being redirected to:');
console.log('%s.ic.fleek.co', canisterId);
window.location.href = `https://${canisterId}.ic.fleek.co`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment