Firebase + Next.js serverless, on GCP - How to manage staging, production + local
问题 I'm using React with next.js and Google Cloud functions to serve the app. I also use firebase. I'm looking for the best way to automatically configure the staging and production configuration for the 3 environments. Production: Uses production credentials Staging: Uses staging credentials Local: Also uses staging credentials I have two Firebase projects and currently switch between the configuration using the firebase.js file in my app. I swap out the config object, then deploy. I want to be