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:

FrameworkBuild commandOutput
Vite / Reactnpm run builddist
Next.js (static export)next build && next exportout
Hugohugo --minifypublic
Astroastro builddist
11ty (Eleventy)npx @11ty/eleventy_site
Jekyllbundle 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.