Tell Nixpacks the site is static, or serve the build output with a small Node server, then push.
Plain files (no build step)
Add a Staticfile to the repo root. Nixpacks then serves the files with nginx. If the files live in a subfolder, name it:
# Staticfile
root: public # omit if the files are at the repo root
This only applies when the repo has no package.json. With one, Nixpacks builds it as a Node app.
With a build step (Vite, etc.)
Build, then serve the output folder on $PORT:
npm install serve
"scripts": { "build": "vite build", "start": "serve -s dist -l $PORT" }
web: npm start
-s returns index.html for unknown paths, which single-page apps need for deep links. Leave it out for multi-page sites.
Deploy
wokku apps:create my-app
git remote add wokku git@git.wokku.cloud:my-app
git push wokku main
Live at https://my-app.wokku.app. First deploy? See the Quickstart.
Troubleshooting
- 404 everywhere —
root:inStaticfilemust point at the folder withindex.html. With a build step, serve the output folder (dist,build), not the source. - SPA deep links 404 — add
-stoserve.