Since the file isn't in Git, keep a .env.example file in your repository so other team members know which variables they need to define to get the production build running.
# .env.production NEXT_PUBLIC_CDN_URL=https://d123.cloudfront.net .env.local.production
There it was.