In this video, we will set environment variables, serverRuntimeConfig and publicRuntimeConfig.
We also have a look into cross-env and dotenv packages to help us out with environment variables
From Next.js documentation:
Generally, you’ll want to use build-time environment variables to provide your configuration. The reason for this is that runtime configuration (serverRuntimeConfig and publicRuntimeConfig) adds rendering/initialization overhead and is incompatible with Automatic Static Optimization.
Timeline:
Github Repository: https://github.com/bmvantunes/youtube-2020-april-nextjs-part10
#next #react #javascript #web-development #programming