/next-env-var-tests

This was done for me to clarify how Envs are substituted on NextJS

Primary LanguageCSS

Test with environment variables

Method Substitution (Client) Substitution (Server)
NODE_ENV Build Build
NEXT_PUBLIC_* Build Build
Any other variable undefined Runtime
Based on URL Runtime undefined