You can deploy your Astro project to Surge a single-command web publishing platform designed for front-end developers.
Install the Surge CLI globally from the Terminal, if you haven’t already.
npm i -g surge
Build your Astro site from your project’s root directory.
npm run build
Deploy to Surge using the CLI.
surge dist
You can use a custom domain when deploying by running surge dist yourdomain.com
.
© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/guides/deploy/surge/