---
title: "Discussion on \".env with vite\" | Hashnode"
description: "Discussion on \".env with vite\". In vite project I use only 2 files:\n\n.env.development\n\n.env.production\n\n\nThe env auto match with your build process without extra manual modification."
url: "https://hashnode.com/posts/env-with-vite/688d8cab64194bbe22b062fd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [.env with vite](https://thebrownbox.hashnode.dev/env-with-vite?utm_source=hashnode&utm_medium=feed)

In vite project I use only 2 files: .env.development .env.production The env auto match with your build process without extra manual modification.

Aug 2, 2025 · 1 min read · thebrownbox.hashnode.dev  
Read the article

-   [#env](https://hashnode.com/tag/env)
-   [#environment-variables](https://hashnode.com/tag/environment-variables)
-   [#vite](https://hashnode.com/tag/vite)
-   [#dotenv](https://hashnode.com/tag/dotenv)

## Written by

[The Brown Box](https://hashnode.com/@hoangvancong)

@hoangvancong

  
[View profile](https://hashnode.com/@hoangvancong)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
