In vite project I use only 2 files:

  • .env.development

  • .env.production

The env auto match with your build process without extra manual modification.

This post is imported from: https://thebrownbox.hashnode.dev/env-with-vite