Deployment
Learn how to deploy your Nuxt Starter Kit application.
This starter kit is vendor-free and can be deployed to any platform that supports Node.js and PostgreSQL.
Follow the Going to production guide before deploying your application to production.
Deployment Platforms
The starter kit works with any Node.js hosting platform:
Vercel
- Connect your repository to Vercel
- Set up environment variables in the Vercel dashboard
- Vercel will automatically detect it's a Nuxt app and deploy
Netlify
- Connect your repository to Netlify
- Set build command:
pnpm build - Set publish directory:
apps/web/.output/public - Configure environment variables in Netlify
Railway
- Create a new project in Railway
- Connect your GitHub repository
- Add a PostgreSQL database
- Set environment variables
- Railway will auto-deploy on git push
Any VPS (DigitalOcean, Linode, etc.)
- Set up a server with Node.js installed
- Clone your repository
- Install dependencies with
pnpm install - Build the application with
pnpm build - Run migrations with
pnpm db:migrate - Start the server with the generated output
Environment Variables
Ensure all required environment variables are set in your deployment platform:
NUXT_PRIVATE_DATABASE_URL- PostgreSQL connection stringBETTER_AUTH_SECRET- Secret for session encryptionBETTER_AUTH_URL- Your production URLNUXT_PRIVATE_POLAR_ACCESS_TOKEN- For payments (if using Polar)NUXT_PRIVATE_POLAR_ORGANIZATION_ID- Your Polar org ID- OAuth credentials (if using social login)
Database
Make sure your PostgreSQL database is accessible from your deployment platform. Most platforms offer:
- Managed PostgreSQL add-ons (recommended)
- Or connect to external PostgreSQL services like:
Build Command
The build command for the monorepo is:
pnpm build
This uses Turborepo to build all packages in the correct order.
Post-Deploy
After deployment, run the database migrations:
pnpm db:migrate
Most platforms support running commands after deployment or you can run this manually.