-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
vercel dev
doesn't render 404 page when X-Content-Type-Options set to nosniff
#7788
Comments
I see that the 404 and 500 stuff is getting reworked #7754, so perhaps that might address this (admittedly somewhat minor) issue |
Is this running |
I'm guessing this is actually unrelated to the |
@natemoo-re thanks for the replies. FYI, I just realized that my minimal reproduction actually doesn't reproduce the issue, sorry about that. Up to you whether you want to leave this issue open or close it, as I may not have time to sort out how to reproduce it minimally. Sorry about the confusion To answer your questions though, this is only when running I'll sit tight and see how things shake out after #7754 is merged. |
Ok, the issue is still present with Astro version 2.9.7. I've updated the issue with a new (and working) minimal repro.
This separate issue also persists, and I've created #7910 to detail and reproduce it |
Since the issue has to do with Feel free to reopen if you find something that suggests otherwise. |
What version of
astro
are you using?2.9.7
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome, Safari
Describe the Bug
I don't know if this a vercel CLI problem or an @astrojs/vercel adapter issue, but:
In
vercel.json
, the following entry:causes a custom 404 page to be rendered as raw HTML text, but only when using
vercel dev
.Everything works normally when using
astro dev
and when deployed on Vercel, including with the header in question.What's the expected result?
Custom 404 page should render.
Link to Minimal Reproducible Example
repo
demo (issue is not present in demo, because issue is only locally when running
vercel dev
)Participation
The text was updated successfully, but these errors were encountered: