nuxt build produces a self-contained Nitro server in .output/. Start it, push, and the app is live.
Build and start
{
"scripts": {
"build": "nuxt build",
"start": "node .output/server/index.mjs"
}
}
web: npm start
Nitro reads PORT and HOST from the environment, so no flags are needed.
Environment variables
Nuxt overrides runtimeConfig from NUXT_* variables at runtime (NUXT_PUBLIC_* for public values), so set them as config vars:
wokku config:set my-app NODE_ENV=production NUXT_PUBLIC_API_BASE=https://api.example.com
Database (optional)
wokku addons:shared:enable my-app postgres
Read process.env.DATABASE_URL in your server routes or ORM. See Create & Link a Database.
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
- Crashes on boot — start
.output/server/index.mjs, notnuxt devornuxt preview. - Fully static site — run
nuxt generateand serve.output/publicas a static site.