-
Create SvelteKit skeleton project
-
Set headers in
hooks.server.ts
kit-headers-bug/src/hooks.server.ts
Lines 3 to 9 in 6721be2
- Disable SSR:
pnpm build
pnpm preview
- Get headers (
https -h http://127.0.0.1:4173/
) - Note the missing headers
- In this reproduction I used
adapter-auto
, but behavior is the same withadapter-node
- The headers are present in dev mode (
pnpm dev
):