POST /api/v1/static.
Content Sources
Pick one of four sources when you create the site:
The two Git sources are built on Miget. The two upload sources take already-built output - uploading a Hugo or Astro project publishes its source files, not a rendered site. Build first, then upload the output directory.
Deploy from GitHub
- Connect GitHub to your workspace if you haven’t already (see GitHub Integration).
- Create the site with the GitHub source, then choose the repository and branch.
- Enable auto-deploy to rebuild and publish on every push to that branch.
Deploy with Git Push
- Create the site with the Git Push source.
- Add an SSH key to your Miget account - the Git remote authenticates with it, and there is no password fallback.
- Wait a few seconds for the remote to be provisioned, then copy it from the site’s Deploy panel and push:
Upload a Zip
- Create the site with the Zip source.
- Build the site locally.
- Zip the contents of the output directory -
index.htmlmust sit at the root of the archive, not inside adist/folder. - Drop the archive on the site’s Deploy panel, or upload it over the API:
Deploy over SFTP
- Create the site with the SFTP source.
- Add an SSH key to your Miget account - the gateway authenticates with it, and there is no password.
- Copy the SFTP target from the site’s Deploy panel and connect:
- Upload the built site into the session root -
put -r ./dist/*, notput -r ./dist, so thatindex.htmllands at the top level. - Disconnect. Closing the session is what triggers the deploy; nothing is published while you are still connected.
Build Settings
Git-based sources are built with automatic framework detection. Each detected generator brings its own default build command and output directory, so a standard project needs no configuration at all. Thirty-three generators are recognised, and any of them can be selected explicitly in the Generator dropdown instead of leaving it on Auto-detect:React
nextjs · cra · preact · react-router · remix · tanstack-start · redwoodjs · hydrogen · gatsbyVue
nuxt · vue · vuepress · vitepress · gridsomeSvelte & Solid
sveltekit · solidstartAngular & web components
angular · scully · stencilStatic site generators
hugo · jekyll · eleventy · hexo · zola · middleman · astro · docusaurusBundlers & the rest
vite · parcel · brunch · ember · storybook · plain-html
Zip and SFTP sites have no build step, so these settings do not apply to them.
Single-Page Applications
Turn on SPA mode for a client-side router (React Router, Vue Router, and friends). Unknown paths then serve/index.html instead of returning a 404, so deep links work on a refresh. It is off by default and can be changed at any time.
Deployments, Logs, and Rollback
The site page shows recent deployments and links to the full history, with live and stored build logs for Git-based sources.- Cancel stops a running build. Only Git Push and GitHub sites have a build to cancel - a zip or SFTP deploy is a direct sync with nothing to stop.
- Rollback is available for GitHub sites only, and rebuilds the commit that deployment shipped. Rebuild a Git Push site by pushing again; zip and SFTP deploys carry no commit to roll back to.
Files
Each site page includes a file browser showing the content currently deployed, so you can confirm what actually landed in storage after a deploy.Custom Domains
Static sites support custom domains exactly like applications: add the domain under Settings → Domains, point DNS at Miget, and verify it. See Custom Domains for the DNS records and the provider walkthroughs.Limitations
- No server-side rendering. There is nothing running behind a static site - if your framework needs a Node server at request time, deploy it as an application instead.
- One source per site. The content source is fixed at creation.
- Zip and SFTP publish what you upload. No build runs for these sources.
- Content is stored in
eu-east-1. Other regions are not accepted for static sites.
Next Steps
Custom Domains
Serve the site on your own domain
GitHub Integration
Connect a repository and deploy on push
Webhooks
Get notified when a deploy starts and finishes
Deployment Methods
Deploy a full application instead

