Now on AppleNow on AndroidScan free

← All posts

NEXT_PUBLIC_ means public: Ember's two-minute check

What if your secret wore a NEXT_PUBLIC_ name tag? Detective Ember would sniff twice.

Next.js inlines these values at build time into browser JavaScript. Without that prefix, variables stay server-only in Node.js.

The two-minute check

  1. Review NEXT_PUBLIC_ variables. Public keys may belong; payment, AI, and service_role secrets don't. See our guide.
  2. Found a secret? Move it server-side and rotate it, then rebuild and redeploy. After next build, public values are frozen; later changes need another build.
  3. Then scan your own app on SniffPup for other exposed secrets.

Full fixes free for every critical issue (no critical? one other fix is free).

Want one 2-minute check like this every morning? Sign up below.

Named after Ember, my black Pomeranian. Built by a software engineer and vibe-coding hobbyist to help you ship safely.