If you're building your app with Docker, ensure that all variables with the NEXT_PUBLIC_ prefix are included in the Docker build step, typically by defining them in the .env.production file.