Got 404 when reload the page in dynamic route in Gatsby on production only #31407
Unanswered
mic-tientpn
asked this question in
Help
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My app to deploy to heroku, i got 404 error when reload or direct access to client-only page
There are two situation:
1: Access home page (index.html in pages folder) -> access other client-only route page -> not get error
2: Direct access to client-only route page -> get 404 error (But it still work)
gatsby-node.js
I defined client-only route in file index.js
Any suggestion to resolve it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions