Deploy your Astro Site to Surge
You can deploy your Astro project to Surge, a single-command web publishing platform designed for front-end developers.
How to deploy
Заголовок раздела «How to deploy»-
Install the Surge CLI globally from the terminal, if you haven’t already.
Окно терминала npm install -g surge -
Build your Astro site from your project’s root directory.
Окно терминала npm run build -
Deploy to Surge using the CLI.
Окно терминала surge distYou can use a custom domain with Surge when deploying by running
surge dist yourdomain.com.