---
title: "Discussion on \"Protecting your API keys with Next JS\" | Hashnode"
description: "Discussion on \"Protecting your API keys with Next JS\". This is the story of Max.\nMax thought his API keys were safe because he put them inside an .env file.\n\n\nMax didn't know his keys were visible in the network tab.\n\n🥲\nMax is actually me, Max is actually everyone.\nEspecially when we are just learning a..."
url: "https://hashnode.com/posts/protecting-your-api-keys-with-next-js/602682724f6b4462941df811"
---

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

Discussion

# [Protecting your API keys with Next JS](https://ivanms1.hashnode.dev/protecting-your-api-keys-with-next-js?utm_source=hashnode&utm_medium=feed)

This is the story of Max. Max thought his API keys were safe because he put them inside an .env file. Max didn't know his keys were visible in the network tab. 🥲 Max is actually me, Max is actually everyone. Especially when we are just learning a...

Feb 12, 2021 · 5 min read · ivanms1.hashnode.dev  
Read the article

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

## Written by

[Ivan Maximiliano Saldano](https://hashnode.com/@ivanms1)

@ivanms1 · South Korea

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

Full Stack Developer | Senior Frontend Developer @ Jitera

I am a developer from Argentina living in South Korea.

## Responses 1

Markdown supported · ⌘↵ to post

[Emin Aydin](https://hashnode.com/@codinghistorian)

[Feb 12, 2021](https://hashnode.com/posts/protecting-your-api-keys-with-next-js/602682724f6b4462941df811/comment/6026dfbce522c1626f37190d)

Another Max out here 👋

Thanks for the great article [Ivan Maximiliano Saldano](https://hashnode.com/@ivanms1), just reminded me to hide some keys for an existing project 😅

[Ivan Maximiliano Saldano](https://hashnode.com/@ivanms1)

[Feb 13, 2021](https://hashnode.com/posts/protecting-your-api-keys-with-next-js/602682724f6b4462941df811/comment/6026dfbce522c1626f37190d#reply-6027a0d64f6b4462941e0500)

You're welcome! Thanks for the comments :)
