Builds the app using the .env.staging environment file, so API URLs and feature flags differ per environment. The --mode flag selects which env file Vite loads alongside the base .env. Run vite build --mode production for the default production output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.