Closed paper-florent closed 2 years ago
In general, environment variables are fixed values, so you can create different .env files to distinguish between environments.
.env (loaded in all cases)
VITE_APP_PRODUCTION_SOURCE_MAP=1
.env.development (only loaded in specified mode)
VITE_APP_PRODUCTION_SOURCE_MAP=0
I did a bit differently by adding a plugin. I wanted to load a script in the html base on the env. But with a plugins its working kind of the same
Hello first thank you for your work !
Have a question. How do you actually add a condition rendering ?
Do you know how I can achieve that ?
Thank you a lot