diff --git a/templates/strapi4/files/.platform.app.yaml b/templates/strapi4/files/.platform.app.yaml index 86535e10f..c718d45ac 100644 --- a/templates/strapi4/files/.platform.app.yaml +++ b/templates/strapi4/files/.platform.app.yaml @@ -55,8 +55,12 @@ web: commands: # The command to launch your app. If it terminates, it’s restarted immediately. start: | - # Production start on all environments - NODE_ENV=production yarn start + yarn start + +# Variables to control the environment. More information: https://docs.platform.sh/create-apps/app-reference.html#variables +variables: + env: + NODE_ENV: 'production' # Specifies a default set of build tasks to run. Flavors are language-specific. # More information: https://docs.platform.sh/create-apps/app-reference.html#build