stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Custom 404 page after build #410

Closed oyvindremme closed 4 years ago

oyvindremme commented 4 years ago

Bug Report

Current Behavior I would like to add a custom 404 page after building the website. I added a page via my routes inside a Switch tag, but that doesn't seem to be detected when I run a build. I'm not sure if this is an issue that has been solved/supported.

Reproducible demo https://github.com/oyvrem/tafjord-k-as

oyvindremme commented 4 years ago

Scratch that. After it's been uploaded to Netlify, it seems to work. Not sure why it doesn't work locally though. I use serve to run a preview of my build folder before deploying it.