Skip to content
BasiX Media

Sites (deploy)

Deploy a static site from CI or the command line.

On this page

Static sites (HTML, CSS, JS) at https://<name>.sites.basix.media/. Good for status pages, docs and small web panels. Create the site in Dashboard → Sites, then deploy a zip.

Deploy

POST https://upload.basix.media/api/v1/sites/<name>/deploy with the raw zip as the body. Full key required.

cd dist && zip -r ../site.zip . && cd ..
curl -X POST https://upload.basix.media/api/v1/sites/my-ui/deploy \
  -H "Authorization: Bearer $BASIX_KEY" \
  -H "Content-Type: application/zip" \
  --data-binary @site.zip
json
{ "ok": true, "deploy": "...", "files": 42, "bytes": 1048576, "url": "https://my-ui.sites.basix.media/" }

Rules: zip up to 200 MB, 300 MB unpacked, 5,000 files. index.html must be at the root of the zip, or inside one top folder. Unknown paths fall back to /index.html, so client-side routing works.

Try it on your own server

Create a free account and your API key is ready in about two minutes. 3 GB included, bandwidth never billed, no card needed.

Create a free account
Sites (deploy) — Standalone docs — BasiX