Skip to content

Static sites

Any directory containing an index.html is detected as a static site and served as-is.

Terminal window
cd my-static-site
gy deploy
  • Plain HTML/CSS/JS
  • Pre-built single-page apps (React, Vue, Svelte output in dist/ or build/)
  • Generated static sites (after running your build locally)
Terminal window
# A plain site
gy deploy --name my-landing-page
# A pre-built SPA in ./dist
gy deploy ./dist --name my-spa

If your site needs a build step, run it locally first, then point gy at the output:

Terminal window
npm run build
gy deploy ./dist

Static sites rarely need runtime env vars, but you can inject build-time values or use client config files.