Skip to content

Can't set headers in hooks.server handle function in vercel #12691

Answered by IslamZaoui
IslamZaoui asked this question in Q&A
Discussion options

You must be logged in to vote

After troubleshooting in a fresh repo I found out that export const prerender = true; in +layout.ts caused this problem

when prerendering is on the headers disappear in the production (both in vercel and local preview)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@IslamZaoui
Comment options

@brunnerh
Comment options

@IslamZaoui
Comment options

Answer selected by IslamZaoui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants