> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# client-env-secret-exposed

> A secret-named env variable is read under a browser prefix (NEXT_PUBLIC_, VITE_, REACT_APP_...), so the build ships it to every visitor.

## What it flags

A secret-named env variable (`SECRET`, `PASSWORD`, `PRIVATE_KEY`, `SERVICE_ROLE`, `DATABASE_URL`) is read under a browser prefix (`NEXT_PUBLIC_`, `REACT_APP_`, `EXPO_PUBLIC_`, Vite `VITE_`, `PUBLIC_` in Astro projects only, SvelteKit public env). Publishable, anon and public keys are clean. No fix.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "client-env-secret-exposed": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.