Vue · Middle · Question 74 of 75

How do you run a Vite build with settings from .env.staging?

Explanation

The mode selects which .env.[mode] file is loaded. import.meta.env.MODE contains the current mode.

Further reading

Problem with a question

Vue · Middle · question 74

Test yourself

Take the Vue · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz