Providers
Analog supports deployment to many providers with little or no additional configuration using Nitro as its underlying server engine. You can find more providers in the Nitro deployment docs.
Zerops
Zerops is the official deployment partner for AnalogJS.
Analog supports deploying both static and server-side rendered apps to Zerops with a simple configuration file.
One Zerops project can contain multiple Analog projects.
Deploy with one click
The fastest way to get started. Zerops has ready-to-deploy Analog recipes with the correct infrastructure and configuration already set up.
Go to app.zerops.io/recipes?lf=analog and pick the variant that matches your app:
- Analog SSR Hello World: Node.js + PostgreSQL, server-side rendered
- Analog Static Hello World: Static site compiled by Vite, served by Nginx Hit Deploy. If you don't have a Zerops account yet, it gets created in the same step.
Static (SSG) Analog app
If your project is not SSG Ready, set up your project for Static Site Generation.
1. Create a project in Zerops
Projects and services can be added either through a Project add wizard or imported using a YAML structure:
project:
name: recipe-analog
services:
- hostname: app
type: static
This creates a project called recipe-analog with a Zerops Static service called app.
2. Add zerops.yaml configuration
To tell Zerops how to build and run your site, add a zerops.yaml to your repository:
zerops:
- setup: app
build:
base: nodejs@22
buildCommands:
- pnpm i
- pnpm build
deployFiles:
- public
- dist/analog/public/~
run:
base: static
3. Trigger the build & deploy pipeline
Server-side rendered (SSR) Analog app
If your project is not SSR Ready, set up your project for Server Side Rendering.
1. Create a project in Zerops
Projects and services can be added either through a Project add wizard or imported using a YAML structure:
project:
name: recipe-analog
services:
- hostname: app
type: nodejs@22
This creates a project called recipe-analog with a Zerops Node.js service called app.
2. Add zerops.yaml configuration
To tell Zerops how to build and run your site, add a zerops.yaml to your repository:
zerops:
- setup: app
build:
base: nodejs@22
buildCommands:
- pnpm i
- pnpm build
deployFiles:
- dist
run:
base: nodejs@22
ports:
- port: 3000
httpSupport: true
start: node dist/analog/server/index.mjs
3. Trigger the build & deploy pipeline
Build & deploy your code
Connect your GitHub / GitLab repository
Your code deploys automatically on every commit or tag. Connect your repository in the service detail - see GitHub Integration / GitLab Integration for more.
Trigger a deploy with Zerops CLI (zcli)
You can also trigger deploys manually from your terminal or existing CI/CD.
- Install the Zerops CLI:
# To download the zcli binary directly,
# use https://github.com/zeropsio/zcli/releases
npm i -g @zerops/zcli
- Open Settings > Access Token Management in the Zerops app and generate a new access token.
- Log in using your access token:
zcli login <token>
- Navigate to the root of your app (where
zerops.yamlis located) and run:
zcli push
Netlify
Analog supports deploying on Netlify with no additional configuration.
Deploying the project
- Create analog
- Nx
Configuration is easiest when using Netlify CLI.
- Start by running this command:
npx netlify init
If this is a new Netlify project, you'll be prompted to initialize it; build settings will be automatically configured in a netlify.toml file.
- Deploy your app:
npx netlify deploy