happybeing / happybeing/rs-basic-test
404s every page after enabling watch('content') to reloadRoutes() in static.config.js
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Using `yarn start` the localhost site displays home, about and blog posts as expected until I uncomment the following line in `static.config.js`:
https://github.com/theWebalyst/rs-basic-test/blob/master/static.config.js#L7
At that point, even after killing and repeating `yarn start` and reloading http://localhost:3000/ all pages show a 404 error.
You can reproduce the error by:
- `git clone https://github.com/theWebalyst/rs-basic-test/ && cd rs-basic-test && git checkout tags/take-content-from-markdown-files -b localtest && yarn && yarn start`
- visit http://localhost:3000/ and confirm Home, About, Blog etc load ok
- remove the comment in static.config.js to enable reloadRoutes() at [line 7](https://github.com/theWebalyst/rs-basic-test/blob/take-content-from-markdown-files/static.config.js#L7)
- visit http://localhost:3000/ and now Home, About, Blog etc all show a 404 error
I don't see any errors in browser or terminal console (using Firefox), but note that there is still some console.log() debug output generated to the terminal by the build (see static.config.js 15-17)
Note: this issue has now been raised in the react-static repo [here](https://github.com/nozzle/react-static/issues/985).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.