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
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
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine you have these .env files:
Then run your start project in dev mode.
For the following component:
Yes, it will be
But can you guess the following output from the api route?
Show answer
Did you guess it right?
Now, change your
VITE_TEST
to anything else (likeoh-my-god
) in.env.development
(do not restart dev server - just see how hot-update works)Can you guess what's the new output?
Show answer
For the first one (component):
And for the second one (api):
Yes, the
.env.development
is ignored now!Beta Was this translation helpful? Give feedback.
All reactions