Nodejs Preset: SERVER_PRESET: zeropsStatic Preset: SERVER_PRESET: zerops-static
Zerops supports deploying both static and server-side rendered apps with a simple configuration file in your project root.
Projects and services can be added either through a Project add wizard or imported using a YAML structure:
project:
name: recipe-nuxt
services:
- hostname: app
type: static
This will create a project called recipe-nuxt with a Zerops Static service called app.
To tell Zerops how to build and run your app, add a zerops.yml to your root:
zerops:
- setup: app
build:
base: nodejs@20
buildCommands:
- yarn
- yarn nuxi generate
deployFiles:
- .output/public/~
run:
base: static
Now you can trigger the build & deploy pipeline using the Zerops CLI or by connecting the app service with your GitHub / GitLab repository from inside the service detail.
Projects and services can be added either through a Project add wizard or imported using a YAML structure:
project:
name: recipe-nuxt
services:
- hostname: app
type: nodejs@20
This will create a project called recipe-nuxt with a Zerops Node.js service called app.
To tell Zerops how to build and run your app, add a zerops.yml to your root:
zerops:
- setup: nuxt
build:
base: nodejs@20
buildCommands:
- yarn
- yarn build
deployFiles:
- .output/~
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
start: node server/index.mjs
Now you can trigger the build & deploy pipeline using the Zerops CLI or by connecting the app service with your GitHub / GitLab repository from inside the service detail.
npm i -g @zerops/zcli
zcli login <token>
zerops.yml is located) and run the following command to trigger the deploy:zcli push
Your code can be deployed automatically on each commit or a new tag by connecting the service with your GitHub / GitLab repository. This connection can be set up in the service detail.