Skip to content

Sveltekit dev module variable is true on prod deployment #5962

@danielfrg

Description

@danielfrg

[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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions