Static hosting
Deploy a static site (SPA or plain HTML/CSS/JS) per project. Each deploy is atomic; the previous one keeps serving until the new one is fully uploaded.
Deploy
# create a site
curl -X POST "https://base.finiteskills.com/v1/hosting/sites" -H "X-Appwrite-Project: <YOUR_PROJECT_ID>" \
-H "X-Appwrite-Key: <API_KEY>" -H "Content-Type: application/json" \
-d '{"siteId":"web","name":"Web","subdomain":"myapp"}'
# upload a deployment (multipart; each part name is the site path)
curl -X POST "https://base.finiteskills.com/v1/hosting/sites/web/deployments" \
-H "X-Appwrite-Project: <YOUR_PROJECT_ID>" -H "X-Appwrite-Key: <API_KEY>" \
-F "/index.html=@dist/index.html" -F "/assets/app.js=@dist/assets/app.js"
The live site is served with an SPA fallback to /index.html. Roll back to any retained
deployment with POST .../deployments/{id}/rollback. Public URL is path-based by default; a
per-site subdomain can be enabled by the deployment.