You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, you can use an environmental variable like VITE_MODE=some-mode svelte-kit build(or cross-env VITE_MODE=some-mode svelte-kit build to cover windows). And use it in svelte.config.js:
Describe the problem
I want to be able to set build mode. In Vite you can do
vite build --mode some-mode
, but this can currently only be set insvelte.config.js
.Describe the proposed solution
Support
svelte-kit build --mode some-mode
Alternatives considered
Have a separate
svelte.config.js
just for the tests, but I can't find a way to pointsvelte-kit build
to itImportance
i cannot use SvelteKit without it
Additional Information
This makes testing very difficult since there's no simple way to detect that the app is running in test env
The text was updated successfully, but these errors were encountered: