You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
That would be great if there was an option indeed. I am also facing the same issue: deploying a website on ipfs while still having the website work in different situations.
@philholden I tried your script but I have still some references to <link href="/client/..." where the forward slash make it look up to the root.
I can probably fix it by modyfying the script but a built-in sapper solution would be great
A single site deployment may be hosted on both IPFS and a regular domain name using a gateway service:
https://blog.cloudflare.com/distributed-web-gateway/
However this means the
basepath
need to work both for:https://mysite.io/about
and:
https://ipfs.io/ipfs/QmbHEhjtfuRrfhDWqDRQqpdX7EnE8ZzByT8t2YXCmfNDBt/about
in this case the following works:
basepath="./" in index.html
basepath="../" in about/index.html
basepath="../../" in blog/article1/index.html
Would it be possible to have a
--relative-basepath
export option that made the basepath of html files relative to their nesting?The text was updated successfully, but these errors were encountered: