Deplomo
Sign in
Astro deployment guide

Astro deployment on Deplomo

Deploy Astro on Deplomo for static sites and SSR apps. Connect from Git or the CLI, set build and run commands, configure environment variables, a domain, and SSL, then deploy your site.

Short answer

forDeploy Astro Whether you generate a static site or use server-side rendering (SSR), pages can be served through the platform’s network. For hosting, see the Astro hosting and page Deployment guide refer to

Last reviewed:6 September 2026

Prepare your project for Deploy Astro

Add the project dependency files, package.json and lockfile to your Git repository. Default build and run commands for this stack:

# Build command
npm ci && npm run build

# Run command
node ./dist/server/entry.mjs

For SSR, use adapter-node in standalone mode. Static output only needs a web server.

Automatic deployment directly from the Git repository

  1. Create a new project and environment in the Deplomo user panel.
  2. Connect the service to the GitHub or GitLab repository and the desired branch.
  3. Set the build and run commands to match your project.
  4. Set the required environment variables, then deploy.
  5. Connect your custom domain in the Domains section and use free SSL.

Deploy a local folder with Deplomo CLI

curl -fsSL https://get.deplomo.com/install.sh | sh
deplomo login
cd your-project
deplomo deploy
deplomo logs

Use the Deplomo CLI to deploy local code directly without pushing it to Git.

On Windows (PowerShell), use irm https://get.deplomo.com/install.ps1 | iex instead of the first command.

Production tips for Astro

  • Specify output and adapter in astro.config.
  • Read SSR secrets from import.meta.env and do not make them public.
  • Cache images and build assets.
  • Check the health check and startup time before routing live traffic.
  • Store persistent data and user files on persistent disks or cloud storage.

Frequently asked questions

How do I deploy an Astro site?

Astro builds static pages with minimal JavaScript for content-focused sites.