Deploy your Astro Site to Surge
This content is not available in your language yet.
You can deploy your Astro project to Surge, a single-command web publishing platform designed for front-end developers.
How to deploy
-
Install the Surge CLI globally from the Terminal, if you haven’t already.
Terminal window npm install -g surge -
Build your Astro site from your project’s root directory.
Terminal window npm run build -
Deploy to Surge using the CLI.
Terminal window surge distYou can use a custom domain when deploying by running
surge dist yourdomain.com
.