Deploying a static Astro blog to a Linux server
A short note on shipping an Astro-generated static site with Nginx on Linux.
Astro works very well for personal sites because it can output a fully static build.
The usual deployment flow looks like this:
- Run
npm run buildlocally - Upload the generated
dist/directory to the server - Point Nginx to the deployed directory
- Configure HTTPS with Let’s Encrypt
For a single personal blog, this approach is simple, fast, and easy to maintain.
I also keep a local deploy script in this project so that publishing a new post is just one command.