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
Hi everyone! Could you please explain the reasoning behind hardcoding vi.stubEnv environment variables to only match "PROD" | "DEV" | "SSR"?
I’m currently using vitest with Next.js, and I’m a bit confused as to why I’m restricted to defining only booleans with the above variables, instead of being able to define whatever I want?
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
-
Hi everyone! Could you please explain the reasoning behind hardcoding
vi.stubEnv
environment variables to only match"PROD" | "DEV" | "SSR"
?I’m currently using
vitest
withNext.js
, and I’m a bit confused as to why I’m restricted to defining only booleans with the above variables, instead of being able to define whatever I want?Beta Was this translation helpful? Give feedback.
All reactions