DEV Community

Discussion on: Getting Create React App to Work with Custom Domains on GitHub User Project Pages

Collapse
 
stereobooster profile image
stereobooster

You can use react-snap as well, to prerender CRA pages as well especially helpful if you use router, otherwise you will get 404 when you refresh page in non-root path

Collapse
 
brettcnelson profile image
𝙱𝚛𝚎𝚝𝚝

Interesting - thanks for letting me know. I'm using hash router to avoid that problem now, but I always think it looks weird.