Deploy static files to the VPS.
Build output goes to dist/. For Plesk-style servers, the
usual webroot is /var/www/vhosts/{domain}/httpdocs/.
Checklist
Ship with a rollback path.
- Set SITE to the production canonical URL
- Run npm run build
- Preview the dist output locally
- Back up the existing webroot before first sync
- Upload dist contents to the webroot
- Verify canonical tags, sitemap, desktop, and mobile
Command
Build command.
$env:SITE = "https://your-domain.com"; npm run build