---
title: "Discussion on \"Best way to Handle Environment Variables\" | Hashnode"
description: "Discussion on \"Best way to Handle Environment Variables\". In the past, I would add sensitive information directly to the code, which was easy but not recommended. As the application and team expanded, it became necessary to manage environment variables. However, it became challenging to handle application c..."
url: "https://hashnode.com/posts/best-way-to-handle-environment-variables/65fa6dd0ec8cdc1405c82b84"
---

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

Discussion

# [Best way to Handle Environment Variables](https://blog.jobins.jp/best-way-to-handle-environment-variables?utm_source=hashnode&utm_medium=feed)

In the past, I would add sensitive information directly to the code, which was easy but not recommended. As the application and team expanded, it became necessary to manage environment variables. However, it became challenging to handle application c...

Mar 20, 2024 · 5 min read · blog.jobins.jp  
Read the article

-   [#environment-variables](https://hashnode.com/tag/environment-variables)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#guide](https://hashnode.com/tag/guide)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Nirajan Basnet](https://hashnode.com/@nirajanbasnet)

@nirajanbasnet · Kathmandu, Nepal

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

Creative coder

Exploring the new tools and techniques on frontend development. Loves to meet up with new people and participate in the community. I do interesting stuff on codepen https://codepen.io/nirazanbasnet

## Responses

Markdown supported · ⌘↵ to post

[Jarrod Roberson](https://hashnode.com/@JarrodRoberson)

[Mar 21, 2024](https://hashnode.com/posts/best-way-to-handle-environment-variables/65fa6dd0ec8cdc1405c82b84/comment/65fc99b0ef8e09384c8b9fff)

Is to NOT USE THEM!

I can not say it any better than Gregory Gaines does in this article.

[dev.to/gregorygaines/stop-using-env-files-now-kp0](https://dev.to/gregorygaines/stop-using-env-files-now-kp0)

.env files are yet another tutorial shortcut that became "best practices" because of lack of comprehension, just like putting I iprefix and Impl suffixes.
