Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vinxi CLI --mode not working properly #378

Open
fitimbytyqi opened this issue Sep 22, 2024 · 3 comments
Open

Vinxi CLI --mode not working properly #378

fitimbytyqi opened this issue Sep 22, 2024 · 3 comments

Comments

@fitimbytyqi
Copy link

Vite's CLI --mode flag gives the ability to build the app based in a certain mode.

if we do npx vite build --mode staging, will pick the .env.staging file if exists.
logging import.meta.env.MODE will spit: staging

With Vinxi this is not happening even though it's CLI supports the --mode flag.

I am trying npx vinxi build --mode staging but it's still picking .env.production file if exists or going back to the default .env if not.

@AlexErrant
Copy link

What version are you on? Was it not fixed with #359 ?

@fitimbytyqi
Copy link
Author

@AlexErrant Im on the latest version 0.4.3, I saw that someone merged #359 but It is not working.

You can reproduce it yourself by either adding vinxi on an existing vitejs project or testing it on SolidStart or TanstackStart.

This might be useful https://discord.com/channels/722131463138705510/1288777738421010452

@iCodeSometime
Copy link

Also not working for my team on the latest release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants