If this is a Node.js program you should store private variables in a .env file (with .env added to your .gitignore) then call process.env.[variable name here] to get the key at runtime.
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.
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.