Static Sites
Build your site with any static generator, bundle it, and push it to the edge.
1. Build your site
Use whatever framework you're comfortable with. Here are the build commands and output directories for popular generators:
| Framework | Build command | Output |
|---|---|---|
| Vite / React | npm run build | dist |
| Next.js (static export) | next build && next export | out |
| Hugo | hugo --minify | public |
| Astro | astro build | dist |
| 11ty (Eleventy) | npx @11ty/eleventy | _site |
| Jekyll | bundle exec jekyll build | _site |
2. Bundle
YourSpace expects a .tar.gz archive of your build output.
Option A: Native tar
# Replace "dist" with your framework's output directory $ tar -czf site.tar.gz -C dist .
Option B: yourspace CLI
$ yourspace bundle ✓ Detected output dir: dist ✓ site.tar.gz created (142 KB)
The CLI reads your yourspace.yml to auto-detect the output directory and bundles it for you.
3. Next step
Once bundled, head to the Deploy page to push your site to the edge.