Open eltigerchino opened 9 months ago
@yannishin Are the appropriate environment variables set at runtime in the built application? https://kit.svelte.dev/docs/adapter-node#environment-variables-origin-protocolheader-hostheader-and-port-header
The description in the link above seems to apply to the settings when building, and I want it to apply in dev mode.
Ah, okay, if it's in dev mode, then you're not actually running any adapter-node code.
What you're asking to do isn't currently supported. We could either add SvelteKit-level configuration for controlling this at dev time only (which feels a bit weird to me), or we could roll this into work to let adapter influence the dev-time behavior of apps (which feels like the better solution, but will take longer to settle on an API - #2304 / #3535).
Because of this development with Cloudflare tunnel + SvelteKit is harder :(
Discussed in https://github.com/sveltejs/kit/discussions/11900