Closed ggolda closed 8 months ago
The only way to fix it that I found is to override LASSO_BUILD_COMMAND
to ''
and run npm run build --mode {stage}
manually and just use lasso as a bundle publishing tool.
Hey @ggolda I'm very sorry for the delay in this issue. Are you still having this issue or still need assistance?
Vite supports multiple environments via specifying a flag
--mode {stage}
during build command: https://vitejs.dev/guide/env-and-mode.htmlThe problem is when building on local with lasso vite for some reason ignores these
.env.{stage}
files. In documentation it is said that:Can it be related that Lasso runs vite and passes the same environment as laravel currently have which overrides variables from
.env.{stage}
files?