Open nicbovee opened 3 hours ago
Wondering if this should change to:
export function setOriginHeader(request: Request, pathname: string): void {
request.headers.append(ASTRO_ORIGIN_HEADER, encodeURIComponent(pathname));
}
I'm missing context around this, but it looks like X-Astro-Origin
is a new header when setOriginHeader
is called, which makes me think .append
is the right method to use based on these docs from cloudflare.
For some reason, if I build locally and then deploy using wrangler pages deploy dist
this does not happen for me. However, if I push the code to GitHub and Cloudflare builds it automatically, I get the same error.
I'm on astro
version 4.16.0
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
After building with
4.16.1
my site running on Cloudflare Pages inhybrid
mode 500's on all non-prerendered routes.Looking at the realtime logs I see complaints about headers:
In the build output there's also a bunch of warnings now that hadn't been there up to this point:
Locking the version to
4.16.0
and re-deploying fixed it.What's the expected result?
I would expect these routes to work.
Link to Minimal Reproducible Example
https://hotfix-hide-entire-countdown.wildatheart1.pages.dev/the-series
Participation