ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 123 forks source link

How does this work? Does it assign a CID to the entire directory? #227

Closed PaulRBerg closed 2 years ago

PaulRBerg commented 2 years ago

Pardon me for opening an issue for a simple question (may be worth it to enable discussions on this repo?)

I just discovered this tool and it's amazing - exactly what I needed after struggling for two hours to upload a static website with ipfs-http-client.

I want to understand how it works. Does this deploy every single file in the build directory recursively, upload the hash of that file to IPNS, then finally generate a CID for the entire directory? Or does it assign that to the "index.html" file? If the latter, are the relative hyperlinks in the HTML files rewritten?

hacdias commented 2 years ago

Hi!

I want to understand how it works. Does this deploy every single file in the build directory recursively, upload the hash of that file to IPNS, then finally generate a CID for the entire directory?

Yes!

PaulRBerg commented 2 years ago

Great.