Railway is a deployment platform built to simplify your infrastructure stack from servers to observability with a unified developer experience.
This guide is for deploying an Astro static site to Railway using either the web interface or Railway CLI tool.
Project Configuration
Section titled “Project Configuration”Railway’s default build system, Railpack, automatically builds your Astro project as a static site.
Deploy via a Railway template
Section titled “Deploy via a Railway template”If you do not already have an Astro project, and are starting from scratch:
Deploy via the web interface
Section titled “Deploy via the web interface”If you have an existing Astro project you would like to deploy but not a Railway account yet:
Deploy via Railway CLI
Section titled “Deploy via Railway CLI”If you have an existing Astro project you would like to deploy and an existing Railway account: