Set this one with the URL you received after the first deployment. Don't forget to add the /api suffix. It will be something like https://project-id.appspot.com/api.
Git Ignore
Because that the app-engine.environment.yaml contains sensitive information, is recommended to add it to .gitignore.
Files ignored by Git are different from the ones ignored by the Google Cloud Platform, so you must create a .gcloudignore file.
backend/.gcloudignore
.gcloudignore
.git
.gitignore
node_modules/
Google Cloud Project
Create a new project for the production environment. To create a staging environment the steps are the same.
Enable billing
Google SDK
Sign in to your account calling gcloud auth login.
Build
Before deploying, you must install the dependencies and build the application:
npm install
npm run build
Replace the start script
App Engine uses the start script to run the application, but our start script also compiles and watches for changes, which isn't needed for production.
Let's replace the original for npm run start:watch, that we will run on localhost, and leave the npm start for the App Engine.