Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ! When using the command
react-router build
to build a v7 project in framework mode with the Vite plugin, how could we pass a custom vite mode (https://vite.dev/guide/env-and-mode) in argument ?I tried
react-router build -- --mode dev
but it doesn't seem to work and I couldn't find any information about this in your documentation.The purpose of this would be to use diffrente
.env
files per environment (for SPA mode). We're usingVITE_*
env variables that are referenced in the code usingimport.meta.env.VITE_VARIABLE
Beta Was this translation helpful? Give feedback.
All reactions