---
title: "Discussion on \"Environment Variables from .env file in NextJS\" | Hashnode"
description: "Discussion on \"Environment Variables from .env file in NextJS\". If you started building your application with next and you want it to access environment variables in your .env file here is away.\nWhy you need a .env file\nThere are a number of reasons why you should have a .env file when working on an application, ..."
url: "https://hashnode.com/posts/environment-variables-from-env-file-in-nextjs/5d39992bdf9bdd0f151d4531"
---

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

Discussion

# [Environment Variables from .env file in NextJS](https://hashnode.bywachira.com/environment-variables-from-env-file-in-nextjs?utm_source=hashnode&utm_medium=feed)

If you started building your application with next and you want it to access environment variables in your .env file here is away. Why you need a .env file There are a number of reasons why you should have a .env file when working on an application, ...

Jul 25, 2019 · hashnode.bywachira.com  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#web](https://hashnode.com/tag/web)
-   [#webpack](https://hashnode.com/tag/webpack)

## Written by

[wachira\_dev](https://hashnode.com/@wwachira)

@wwachira · Worldwide

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

Maker

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
