Static sites
Any directory containing an index.html is detected as a static site and served as-is.
Deploy
Section titled “Deploy”cd my-static-sitegy deploySupported
Section titled “Supported”- Plain HTML/CSS/JS
- Pre-built single-page apps (React, Vue, Svelte output in
dist/orbuild/) - Generated static sites (after running your build locally)
Examples
Section titled “Examples”# A plain sitegy deploy --name my-landing-page
# A pre-built SPA in ./distgy deploy ./dist --name my-spaBring your own build
Section titled “Bring your own build”If your site needs a build step, run it locally first, then point gy at the output:
npm run buildgy deploy ./distEnvironment variables
Section titled “Environment variables”Static sites rarely need runtime env vars, but you can inject build-time values or use client config files.