-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Do not display the 404 overlay #12943
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
Comments
Can you please update your reproduction with a valid adapter? (node, I suppose) |
Hello @misl-smlz. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@ematipico Example updated. We use https://github.com/lukeshay/astro-aws as adapter. |
Hey there! I've checked out the stackblitz and have a small question.
What do you exactly mean by this? 😅 A link to an external page, an html response, etc.? |
some content we display as 404 page |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
We use SSR with a cms and have a catch-all route ([...path].astro), ask our cms to get the page and render it. If the path is not available, the cms returns a "page not found" component which we display AND return a 404 status code. That works fine on the server but on development we always see the astro 404 overlay (I'm aware of the custom 404, but this is not how we work).
What's the expected result?
The 404 astro overlay should not be displayed in development - our 404 should be displayed.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-amupzgyx?file=src%2Fpages%2F%5B...path%5D.astro
Participation
The text was updated successfully, but these errors were encountered: