w wokku
Get Started
~/docs
/
frameworks

# Deploy a Static Site

Updated · Edit on GitHub ↗

Deploy plain HTML/CSS/JS or any build-tool output (Vite, plain SPA, Hugo,
Eleventy) to Wokku.

Prerequisites

1. Create the app

Apps → New App → server, name my-site, box size, Create.

2. Tell Wokku it’s static

Add an empty Staticfile to the root of what you want served. By default the
repo root is served; set root: if your files live in a subfolder:

yaml
# Staticfile
root: public        # omit if files are at the repo root

That’s it — the static buildpack serves your files over HTTP, with clean URLs
and gzip.

3. With a build step (Vite, etc.)

If you build first, use the Node buildpack and serve the output instead:

text
# package.json
"scripts": { "build": "vite build", "start": "npx serve dist -l $PORT" }
procfile
web: npm start

4. Deploy

bash
git remote add wokku git@git.wokku.cloud:my-site
git push wokku main

Live at https://my-site.wokku.app.

Custom domain

Custom Domains — SSL is automatic.

Troubleshooting

  • 404s everywhere — check root: in Staticfile points at your files.
  • SPA deep links 404 — add a fallback so unknown routes serve index.html (SPA mode).
  • Build output not served — with a build step, serve the output dir (dist/build), not the source.

Next steps

Was this page helpful?