CSLE static hosting
Public websites are hosted at /site-name/. Publishing requires the same bearer credential as deploy.csle.se.
Publish a website
ZIP the built website contents with index.html at the archive root. Use a server-side client:
curl --request PUT https://static.csle.se/api/v1/sites/my-site \
--header "Authorization: Bearer $SAAS_MCP_TOKEN" \
--header "Content-Type: application/zip" --data-binary @site.zip
GET /api/v1/sites lists sites. DELETE /api/v1/sites/my-site unpublishes one. Both require the same Authorization header.
Uploads replace the entire site. Limits: 100 MiB ZIP, 500 MiB expanded, 20,000 entries. Hidden files and symlinks are rejected. Build assets with /my-site/ as their base path. Browser publishing and OAuth are not supported.