-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[5.0.0-beta.8] Astro.request.headers warning when build output server with prerender #12459
Comments
@drithh please provide a valid reproduction, your |
Hello @drithh. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Here's a minimal repro:
|
Just stumbled across this as well - but it only started to happen after I added the experimental container API (we needed to render a Content component to HTML). Not sure if I need to configure something in the container to make the warning go away. Edit: I'm guessing this might have been fixed via #12498? |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
that warning will be shown on output mode
server
and there page withexport const prerender = true;
What's the expected result?
The warning shouldn’t appear because I’m not accessing the headers in my code. This issue seems similar to what’s described here: withastro/astro#12069. but this issue only fix when output mode
static
Link to Minimal Reproducible Example
https://github.com/drithh/astro-header-warning
Participation
The text was updated successfully, but these errors were encountered: