Deploy a static website to web3 storage
-
Generate your Web3 Storage API key at https://web3.storage/
-
Rename
.example.env
to.env
and put your API key in it. -
Put your website build in the src folder
-
Type the following commands in your terminal :
yarn
yarn start
- Then you will get as an output something like the following where the last line is your website URL.
Uploading 3 files
Content added with CID: bafybeichqy6nnosgi6oqr64fet3mplo5ygciuptozb3v4eixw2jwvqvinm
Find it at: https://bafybeichqy6nnosgi6oqr64fet3mplo5ygciuptozb3v4eixw2jwvqvinm.ipfs.dweb.link