You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have a global variable accessible in my app but a different one for dev and build mode. I tried to use define for setting the dev one in vite.config and rollup output intro for the build mode in the rollupOptions. What am I doing wrong ? Is there a way to do this, without defining environment variables ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to have a global variable accessible in my app but a different one for dev and build mode. I tried to use define for setting the dev one in vite.config and rollup output intro for the build mode in the rollupOptions. What am I doing wrong ? Is there a way to do this, without defining environment variables ?
Beta Was this translation helpful? Give feedback.
All reactions