LLevelUp
0
← Back to topic

Deploy Static Apps

Static apps produce files that any web server can serve. Astro static output usually lives in dist/.

pnpm build
rsync -avz --delete dist/ [email protected]:/var/www/site/

Nginx can serve that directory directly:

root /var/www/site;
index index.html;

TIP

Keep a previous build directory or artifact so rollback is a copy/symlink change, not a rebuild under pressure.

Further Learning

  • “Nginx static site root index” — static hosting
  • “rsync deploy static site” — file sync deploys
  • “Astro static deploy nginx” — Astro output hosting