ShipWatchFree scan

VITE_ and NEXT_PUBLIC_ variables are not secret

AI tools often put API keys in variables named VITE_OPENAI_KEY or NEXT_PUBLIC_STRIPE_SECRET so the code "just works." Those prefixes tell the build to copy the value into your front-end JavaScript, which every visitor downloads. Anyone can open the browser's dev tools and read it.

Check it

Search your project for VITE_ and NEXT_PUBLIC_. Anything there that is a secret key (OpenAI, Stripe secret, a database service key) is exposed.

Fix it

Paste this to your AI tool: "Find any secret keys in VITE_ or NEXT_PUBLIC_ variables, move those calls to a server route, and use server-only env vars."

The free ShipWatch scan checks your live app for leaked API keys in client code.

Scan your app free in 30 seconds

Paste your live URL for a plain-English report with fix prompts. Passive and read-only, no signup. Only scan apps you own.

Run the free scan

← All posts · RSS feed