Deployment
This guide covers deploying your app to production environments.
Build for Production
npm run build
The output is placed in .output/. It is a self-contained Node.js server.
Environment Variables
Set environment variables on your hosting provider:
| Variable | Description |
|---|---|
NUXT_PUBLIC_APP_NAME | Public app name |
API_SECRET | Server-side secret |
DATABASE_URL | Database connection string |
Hosting Options
- Vercel — zero-config, push to deploy
- Fly.io — Docker-based, good for full-stack
- Railway — simple Postgres + Node bundles
- Self-hosted — run
.output/server/index.mjsbehind nginx