-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 page renders only html #2878
Comments
You configured Cloudfront to serve You should do the former. |
Hi @KyleAMathews ! When I have url like "/somepage" I can see line in console: And only prebuilt html is rendered. |
Does your issue seem the same as #1838? |
Hi @KyleAMathews |
@VitaliiZhukov @KyleAMathews it's not mounted because previously, the callback to mount the DOM was not executed if no page resources found. I suppose the link works fine if it's not relying on gatsby's gatsby/packages/gatsby/cache-dir/loader.js Lines 248 to 253 in 6b2732a
|
Hi @KyleAMathews , @emmafallancy Did you have such behaviour? Or it's only my case? |
Yup, this is expected since the
Some host would search for |
Got it, thanks! |
Hi!
I have an issue with 404 page.
I created pages/404.js file and configured cloudfront to give back this route if page not found.
As result I have next case:
www.mysite.com/404 - opens correct 404 page
www.mysite.com/fakeurl - opens only 404 html without mounting. Only prebuilt html content.
I've seen similar issue here but didn't found the solution:
#2223
Is that matter of gatsby or probably server configuration?
Thanks!
The text was updated successfully, but these errors were encountered: