This PR builds on #26, so the other PR should be merged first. Then this PR should get rebased and finally merged.
We can't generate a route to a file path like ipfs-404.html with elm-pages right now. Elm-pages renders all routes to a file like /route/to/index.html.
However, we can just copy the correct index.html file to ipfs-404.html and it works correctly.
I also attempted to just generate a redirect file, but that's another can of worms. It's slower and if you do it incorrectly, it can lead to redirect loops.
This PR builds on #26, so the other PR should be merged first. Then this PR should get rebased and finally merged.
We can't generate a route to a file path like
ipfs-404.html
with elm-pages right now. Elm-pages renders all routes to a file like/route/to/index.html
. However, we can just copy the correct index.html file toipfs-404.html
and it works correctly.I also attempted to just generate a redirect file, but that's another can of worms. It's slower and if you do it incorrectly, it can lead to redirect loops.