diff --git a/templates/nuxtjs/files/.platform.app.yaml b/templates/nuxtjs/files/.platform.app.yaml index 957b1582f..073c77115 100644 --- a/templates/nuxtjs/files/.platform.app.yaml +++ b/templates/nuxtjs/files/.platform.app.yaml @@ -1,32 +1,61 @@ -# The name of this app. Must be unique within a project. +# Complete list of all available properties: https://docs.platform.sh/create-apps/app-reference.html + +# A unique name for the app. Must be lowercase alphanumeric characters. Changing the name destroys data associated +# with the app. name: app -# The runtime the application uses. The 'type' key defines the base container -# image that will be used to run the application. There is a separate base -# container image for each primary language for the application, -# in multiple versions. Check the Node.js documentation -# (https://docs.platform.sh/languages/nodejs.html#supported-versions) -# to find the supported versions for the 'nodejs' type. -type: 'nodejs:14' +# The runtime the application uses. +# Complete list of available runtimes: https://docs.platform.sh/create-apps/app-reference.html#types +type: 'nodejs:18' + +# The web key configures the web server running in front of your app. +# More information: https://docs.platform.sh/create-apps/app-reference.html#web +web: + # Commands are run once after deployment to start the application process. + # More information: https://docs.platform.sh/create-apps/app-reference.html#web-commands + commands: + # The command to launch your app. If it terminates, it’s restarted immediately. + start: "node .output/server/index.mjs" + +# Variables to control the environment. More information: https://docs.platform.sh/create-apps/app-reference.html#variables +variables: + env: + NUXT_TELEMETRY_DISABLED: 1 +# 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 build: flavor: none -dependencies: - nodejs: - yarn: "*" +# Required for storage +# More info: https://unjs.io/blog/2023-08-25-nitro-2.6#default-persistent-data-storage +disk: 128 +mounts: + '.data': + source: local + source_path: .data +# Hooks allow you to customize your code/environment as the project moves through the build and deploy stages +# More information: https://docs.platform.sh/create-apps/app-reference.html#hooks hooks: + # The build hook is run after any build flavor. + # More information: https://docs.platform.sh/create-apps/hooks/hooks-comparison.html#build-hook build: | - set -e - yarn - yarn build - -web: - commands: - start: "yarn start" + corepack yarn install --frozen-lockfile + corepack yarn build +# Information on the app's source code and operations that can be run on it. +# More information: https://docs.platform.sh/create-apps/app-reference.html#source source: + ###################################################################################################################### + ## ## + ## This source operation is part of the Platform.sh process of updating and maintaining our collection of ## + ## templates. For more information see https://docs.platform.sh/create-apps/source-operations.html and ## + ## https://github.com/platformsh/source-operations ## + ## ## + ## YOU CAN SAFELY DELETE THIS COMMENT AND THE LINES BENEATH IT ## + ## ## + ###################################################################################################################### operations: auto-update: command: |