-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Sveltekit dev module variable is true on prod deployment #5962
Copy link
Copy link
Closed
Description
[REQUIRED] Environment info
firebase-tools: 11.28.0 and the latest Github Action
Platform:
[REQUIRED] Test case
Any sveltekit project that uses the dev module
[REQUIRED] Steps to reproduce
For example I use it to show stuff in the UI when I am in dev mode:
{#if dev}
... stuff ...
{/if}
[REQUIRED] Expected behavior
In prod the content should be ignored since the dev variable is false. This works fine with doing a regular svelte build. For example doing an static build and deploying that to firebase. When using the frameworks this variable is set to true for some reason.
[REQUIRED] Actual behavior
When doing firebase deploy it doesn't seem to set this variable for some reason, probably because the adaptar is ignored. Not 100% sure why.
Reactions are currently unavailable