I’m creating a new SvelteKit app deployed in netlify (using @sveltejs/adapter-netlify).
Sveltekit has a feature call hooks, which this adapter basically converts into netlify functions.
I’ve noticed that my request object in the hooks doesn’t have any headers. None. Running the app locally it works fine, and I’ve verified that I am indeed sending headers, so I can only assume netlify is stripping them.
How can I ensure I receive headers? How can I even be sure wether netlify is to blame and not the adapter (although again, it works well locally).
For completeness, my netlify.toml file is this:
[build] command = "npm run build" publish = "build" [dev] command = "svelte-kit dev" [functions] directory = "netlify/functions" node_bundler = "esbuild"