Hi,
After upgrading Astro from v3.4.2 to v.4.5.10, I'm getting the following error and warning when I try to do a HTTPS Request to API. So, that was working in v.3.4.2
14:01:32 [WARN] `Astro.request.headers` is not available in "static" output mode. To enable header access: set `output: "server"` or `output: "hybrid"` in your config file.
14:01:32 [500] POST /api/submit-form 1ms
It says I need define hybrid output in config file. However, it is already so.
astro.config.mjs
export default defineConfig({
...
output: 'hybrid',
adapter: vercelServerless({
webAnalytics: {
enabled: true
}
}),
})
my versions:
"@astrojs/vercel": "^7.4.0",
"astro": "^4.5.10",
I updated to astro the latest v.4.5.13. The error is still same. I have also looked at changelog. However, I could not find any related change about output mode.
Is this a bug in new version? Or do I need to define output mode differently in new version of Astro?