svelte-kit-static-ipfs Svelte Themes

Svelte Kit Static Ipfs

Step to reproduce

  1. pnpm i (install dependencies)
  2. pnpm build (build a static, pre-rendered website using adapter-static into the "build" folder)
  3. 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:

if you navigate http://localhost:8080/ipfs/whatever/about/ directly (hit reload to ensure that) you get these issues :

There are also issues related to load function (+server.ts/+page.ts):

if you navigate to http://localhost:8080/ipfs/whatever/blog/2/

  • it fails to load the data with a 500. (note that if you disable javascript, you see the content fine, though images in the header are broken, like mentioned above)

Top categories

Loading Svelte Themes