pnpm i
(install dependencies)pnpm build
(build a static, pre-rendered website using adapter-static into the "build" folder)pnpm serve
(serve the "build" folder using an emulator of an ipfs node)Navigate to http://localhost:8080 and you ll have a perfectly working website
Now navigate to http://localhost:8080/ipfs/whatever/ and you ll notice some issues:
ipfs/whatever/
if you navigate http://localhost:8080/ipfs/whatever/about/ directly (hit reload to ensure that) you get these issues :
ipfs/whatever/
and this result in both the svelte and github logo to fails to renderThere are also issues related to load function (+server.ts
/+page.ts
):
if you navigate to http://localhost:8080/ipfs/whatever/blog/2/
500
. (note that if you disable javascript, you see the content fine, though images in the header are broken, like mentioned above)