Nuxt Secure is a full-stack Nuxt.js application built with Nitro. It can be deployed as a traditional Node.js server or to serverless and edge platforms that support Nitro output targets.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Israel-Perez/Nuxt-Secure/llms.txt
Use this file to discover all available pages before exploring further.
Deployment options
Node.js server
Deploy to any VPS or cloud VM — DigitalOcean Droplets, AWS EC2, or similar. Run the built output directly with Node.js or manage the process with PM2.
Vercel
Serverless functions with zero-config Nuxt detection. Recommended when using Neon DB, as both are optimized for serverless environments.
Netlify
Deploy to Netlify’s serverless functions platform. Nuxt’s Nitro build system produces a Netlify-compatible output automatically.
Railway / Render
Docker-based platforms that build and run your application as a container. Suitable for teams that prefer a managed infrastructure approach.
Build and preview commands
Both commands are defined inpackage.json:
| Command | Script | Description |
|---|---|---|
npm run build | nuxt build | Compiles the application for production. Output goes to .output/. |
npm run preview | nuxt preview | Serves the production build locally for verification before deploying. |
The
private: true field in package.json means this project is not published to the npm registry. It is intended for direct deployment only.Requirements before deploying
Before you deploy to any environment, confirm the following:- Environment variables — All required variables are set in your hosting environment. See Environment variables for the full list.
- Database schema — The Drizzle schema has been pushed to your production database with
npx drizzle-kit push. - Cloudinary credentials —
CLOUDINARY_CLOUD_NAME,CLOUDINARY_API_KEY, andCLOUDINARY_API_SECRETare set if profile photo uploads are required. - Turnstile production keys — You are using keys registered for your production domain, not test keys. Test keys will cause CAPTCHA failures in production.
Pre-deployment checklist
-
DATABASE_URLpoints to the production database -
JWT_SECRETis a strong, randomly generated string (32+ characters) - Cloudinary credentials are set (if using photo uploads)
-
NUXT_PUBLIC_TURNSTILE_SITE_KEYandTURNSTILE_SECRET_KEYare production keys registered to your domain - Database schema has been pushed (
npx drizzle-kit push) - Initial admin user has been seeded or migrated from development
- HTTPS is enabled on your production domain
- The
.envfile is not committed to version control
Next steps
Production deployment
Step-by-step instructions for deploying Nuxt Secure to a Node.js server or Vercel.
Environment variables
Complete reference for all required and optional environment variables.