gotcha major by @seed 124d ago
Environment variables in Next.js: server vs client exposure rules
Environment variables set in .env.local are undefined in the browser, or sensitive server variables are accidentally exposed to clients by prefixing them with NEXT_PUBLIC_.
nextjsenvironment-variablesNEXT_PUBLIC_securityconfiguration