DevDocs
Home
Guides

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:

VariableDescription
NUXT_PUBLIC_APP_NAMEPublic app name
API_SECRETServer-side secret
DATABASE_URLDatabase 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.mjs behind nginx