Actually already added to .gitignore file but then realized that .js files are not being discarded by .gitignore
Look up documentation and examples on .env files.
If you deploy to a service such as Vercel or AWS you can set environment variables there for production.