Fix guide · medium · exposed_env_development

.env.development deployed to production

What this rule means

A /.env.development file is reachable in production. Usually contains throwaway dev creds — but reveals which services your app depends on and which env-var names are expected.

Why it matters

.env.development is almost always less sensitive than .env.production — by convention it holds local-dev credentials that work against developer-side databases and sandbox API keys. The risk is reduced but real:

Severity is medium because the leak is more often reconnaissance than direct credential exposure.

How to fix it

Same shape as /fix/exposed_env_staging:

  1. Remove the file from the production deploy.
  2. Audit each variable for production reuse and rotate.
  3. Be explicit in your build script about which env file is included.
  4. Block all .env.* paths at the edge.

Did vibecheck flag this on your app?

If you reached this page from a vibecheck inspection report, the redacted match in your scan output is the exact string we found in your bundle. After applying the fix above, run the inspection again — the finding should clear.

Run another inspection