runtime: nodejs20
service: production-frontend
env: standard
instance_class: B1
manual_scaling:
instances: 1
runtime_config:
operating_system: "ubuntu22"
runtime_version: "20"
handlers:
- url: /static/(.*)
static_files: build/static/\1
upload: build/static/(.*)
secure: always
- url: /(.*\.(json|ico|js|html|png|txt|css))$
static_files: build/\1
upload: build/.*\.(json|ico|js|html|png|txt|css)$
secure: always
- url: /.*
static_files: build/index.html
upload: build/index.html
secure: always
build_env_variables:
NODE_ENV: production
NPM_CONFIG_FORCE: true
GENERATE_SOURCEMAP: false
env_variables:
NODE_ENV: production
GENERATE_SOURCEMAP: false
# MY REACT APP ENVIROMENT VARIABLES
production.flex.yaml
runtime: nodejs
service: production-frontend
env: flex
runtime_config:
operating_system: "ubuntu22"
runtime_version: "20"
handlers:
- url: /static/(.*)
static_files: build/static/\1
upload: build/static/(.*)
secure: always
- url: /(.*\.(json|ico|js|html|png|txt|css))$
static_files: build/\1
upload: build/.*\.(json|ico|js|html|png|txt|css)$
secure: always
- url: /.*
static_files: build/index.html
upload: build/index.html
secure: always
build_env_variables:
NODE_ENV: production
NPM_CONFIG_FORCE: true
GENERATE_SOURCEMAP: false
env_variables:
NODE_ENV: production
GENERATE_SOURCEMAP: false
# MY REACT APP ENVIROMENT VARIABLES
> Next, I want to upgrade only the production environments / apps of both web app & backend app to flexible environment type, to increase the performance of the apps for real users.
Not a direct answer to your question but I'm curious as to why you think Flexible will provide a better performance than Standard in your use case.
> it just doesn't load up
Was the deploy successful? Do you get an error when you try to open your App? If so, what is the error? What do you see in your logs?