Environment variables are undefined in your application, causing features to break.
process.env.VAR_NAME is undefined
API keys missing in production
Different behavior in dev vs production
Missing NEXT_PUBLIC_ prefix for client-side vars
.env file not in correct location
Environment not set in deployment platform
Using server-only vars in client components
DevConsole shows all accessible environment variables and their values (with secrets masked).
Ensure client-side vars start with NEXT_PUBLIC_
Check .env.local, .env.production, etc.
Ensure vars are set in your hosting platform.
Next.js only exposes env vars starting with NEXT_PUBLIC_ to the browser for security.
Yes! API routes run on server, so they can access all env vars.
DevConsole gives you the visibility and control to fix issues like environment variable undefined in seconds, not hours.
Get DevConsole Pro