Skip to content

Deploy Astro App on Seenode | Astro Hosting & Deployment Guide

Astro is a modern, content-focused web framework for building fast websites using the Islands Architecture. This guide shows how to deploy your existing Astro project as a web service on seenode.

Before you begin, ensure you have:

  • Node.js 18+ installed locally
  • Git configured on your machine
  • A seenode account at cloud.seenode.com
  • Existing Astro project ready to deploy

To deploy as a web service, Astro needs to be configured for server-side rendering. Install the Node.js adapter:

Terminal window
npx astro add node

This will automatically update your astro.config.mjs and install the required dependencies.

seenode requires applications to be reachable on port 80 at the load balancer. Your server should listen on PORT from the environment, defaulting to 80 in production. Configure your Astro project accordingly:

astro.config.mjs
import { defineConfig } from 'astro/config';
import node from '@astrojs/node';
export default defineConfig({
output: 'server', // Enable SSR mode
adapter: node({
mode: 'standalone'
}),
server: {
// Use port from env in production (default 80), 4321 for development
port: process.env.NODE_ENV === 'production' ? (Number(process.env.PORT) || 80) : 4321,
host: true // Bind to 0.0.0.0 for container networking
}
});

Ensure your package.json includes the following scripts:

package.json
{
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"start": "NODE_ENV=production node ./dist/server/entry.mjs"
}
}
  1. Push to Git

    Commit your project and push it to GitHub or GitLab.

  2. Create a Web Service

    From the seenode Dashboard, create a new Web Service and connect your repository.

  3. Configure Build & Start

    seenode will detect a Node.js project. Configure:

    • Build Command:
      npm ci && npm run build
    • Start Command:
      npm start
    Configure Build & Start: Port field
  4. Choose Pricing Tier

    Select your preferred instance size and create the service.

  5. Deploy

    Click Create Web Service and watch logs until your web service is live.

  6. Success

    Once complete, your Astro application will be accessible via your service’s URL.

If you don’t have an Astro project yet:

Option 1: Use our Template (Recommended)

Option 2: Create from Astro Docs + seenode Setup

Follow the official Astro documentation to create a new project, then return here for seenode-specific deployment steps.

seenode-Specific Setup Steps:

  1. Run npm create astro@latest
  2. Select the minimal template
  3. Install Node.js adapter: npx astro add node
  4. Configure for seenode (see “Configure for seenode Deployment” above)

If your deployment fails, check the Logs tab. Here are solutions to common issues: