Closed xmlking closed 6 months ago
dotenv-run -v -f .env -f .secrets -- bash -c 'svelte-kit sync && vite dev'
?
or have a npm script:
"scripts": {
"dev:run": "svelte-kit sync && vite dev",
"dev": "dotenv-run -v -f .env -f .secrets -- npm run dev:run"
}
Second one should work for both windows and Mac
b.t.w -f .env,.secrets
did not work on windows. Have to rewrite -f .env -f .secrets
I'll close the issue, let me know if you need any help.
Recently I needed to run two scripts
svelte-kit sync
&vite dev
and passEnv Vars
to second command.This works
This didn't work.
Env Vars
are not passed tovite dev
commandany recommendations to accomplish this?