@@ -46,23 +46,28 @@ and merge. Afterwards, proceed to create a manual IPFS deployment. Full process:
46462 . Run ` git checkout production ` to check out the production branch locally
47473 . Run ` git pull ` to pull the latest changes
48484 . Populate ` .env.production.local ` with production secrets
49- 5 . Make sure to use Node version 18
50- 6 . Run ` pnpm install ` to install the latest dependencies
51- 7 . Run ` pnpm build ` to create the production build
52- 8 . Switch the Node version to at least 22
53- 9 . Run ` PINATA_JWT=<JWT> pnpm upload-build-to-pinata ` to upload the build folder to Pinata
54- 10 . Run ` docker run --rm -v "$(pwd)/build:/build" ipfs/kubo add --only-hash --recursive /build ` to verify the CID hash
55- of the build folder with the deployed hash on Pinata
56- 11 . Verify the uploaded page by clicking on the uploaded "build" row on the UI (differentiated by CID if there are
57- multiple) and make sure it loads - the fonts may look strange, but that's only because of security policies defined
58- by the Pinata preview site and they will work without issues when used via ENS
59- 12 . Refer to the "Updating the name servers" section below to update the ENS name
49+ 5 . Run ` pnpm install ` to install the latest dependencies
50+ 6 . Run ` pnpm build ` to create the production build
51+ 7 . Run ` PINATA_JWT=<JWT> pnpm upload-build-to-pinata ` to upload the build folder to Pinata
52+ 8 . Run ` docker run --rm -v "$(pwd)/build:/build" ipfs/kubo add --only-hash --recursive /build ` to verify the CID hash of
53+ the build folder with the deployed hash on Pinata
54+ 9 . Verify the uploaded page by clicking on the uploaded "build" row on the UI (differentiated by CID if there are
55+ multiple) and make sure it loads - the fonts may look strange, but that's only because of security policies defined
56+ by the Pinata preview site and they will work without issues when used via ENS
57+ 10 . Refer to the "Updating the name servers" section below to update the ENS name
6058
6159#### Updating the name servers
6260
6361The primary way to access the DAO dashboard is through the ` api3.eth ` ENS name, which points directly to the IPFS hash.
6462Then, the user can either use ` https://api3.eth.limo ` or connect to mainnet on their MetaMask (or use a browser which
65- supports resolving .eth domains) and visit ` api3.eth/ ` .
63+ supports resolving .eth domains) and visit ` api3.eth/ ` . How this works is
64+ [ documented on IPFS] ( https://docs.ipfs.io/how-to/websites-on-ipfs/link-a-domain/#ethereum-naming-service-ens ) .
6665
67- After pushing to the production branch, [ verify the IPFS CID] ( ./README.md#verifying-the-ipfs-cid ) . Then,
68- [ point ` api3.eth ` to the new CID] ( https://docs.ipfs.io/how-to/websites-on-ipfs/link-a-domain/#ethereum-naming-service-ens ) .
66+ Assuming you have a v1 CID (` ipfs://bafy... ` ) and access to the api3.eth owner wallet, you can update the ` api3.eth ` to
67+ the new version by following these steps:
68+
69+ 1 . Connect to the ENS application with the owner wallet of the api3.eth domain.
70+ 2 . Go to api3.eth "Records" page and edit the "Content Hash".
71+ 3 . Change the value to the new CID. Note, that the ENS app will also handle CID v0 and convert under the hood, but it's
72+ better to use the CID v1 directly.
73+ 4 . Execute the TX. Note that it may take a bit of time until ` https://api3.eth.limo ` is updated.
0 commit comments