static_sites:
- build_command: npm run build
environment_slug: node-js
github:
branch: main
deploy_on_push: true
repo: your-repo-name
name: your-app-name
output_dir: dist
source_dir: /Deploy a completely static Astro site to DigitalOcean App Platform
Astro's docs skip DigitalOcean, and DigitalOcean's autodetection assumes you want a Node server. Here is the path to a fully static deploy for about five dollars a month.
Read the article