---
title: "Discussion on \"NEXT_PUBLIC_ and VITE_ aren't for secrets: what actually ends up in your browser bundle\" | Hashnode"
description: "Discussion on \"NEXT_PUBLIC_ and VITE_ aren't for secrets: what actually ends up in your browser bundle\". Both prefixes are inlined at build time. What's fine to ship, what never is, and a five-minute check for your live site."
url: "https://hashnode.com/posts/next-public-and-vite-aren-t-for-secrets-what-actually-ends-up-in-your-browser-bundle/6afa84c68b7dc4eec30db5bf"
---

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

Discussion

# [NEXT\_PUBLIC\_ and VITE\_ aren't for secrets: what actually ends up in your browser bundle](https://plugleak.hashnode.dev/next-public-and-vite-aren-t-for-secrets-what-actually-ends-up-in-your-browser-bundle?utm_source=hashnode&utm_medium=feed)

Both prefixes are inlined at build time. What's fine to ship, what never is, and a five-minute check for your live site.

Nov 16 · 4 min read · plugleak.hashnode.dev  
Read the article

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

## Written by

[PlugLeak](https://hashnode.com/@plugleak)

@plugleak

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

Short, sourced write-ups on what an AI-built app actually ships to the browser, and how to keep keys on the server. From the PlugLeak team.

Short, sourced write-ups on what an AI-built app actually ships to the browser, and how to keep keys on the server. From the PlugLeak team.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
