DRTC Fluvial Admin is a standard Next.js 16 application. You can deploy it anywhere that runs Node.js: Vercel (the recommended path for Next.js apps), a VPS, or any cloud platform that supportsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Bran258/drtc-fluvial-admin/llms.txt
Use this file to discover all available pages before exploring further.
next start. Regardless of where you deploy, the single requirement is that the NestJS backend is running and reachable from your production host before you point traffic at the panel.
Building for production
Before deploying anywhere, verify that the application builds cleanly. Run the build locally with your production environment variable set:.next/ directory. To run the production server locally after building:
--port to change it:
Deploying to Vercel
Vercel is the recommended hosting platform for Next.js applications. It handles builds, CDN distribution, and serverless functions automatically.Install the Vercel CLI (optional)
You can deploy through the Vercel dashboard without the CLI. If you prefer the terminal:
Connect your repository
Go to vercel.com/new and import your Git repository. Vercel detects Next.js automatically and sets the framework preset.
Set environment variables
In your Vercel project, go to Settings → Environment Variables and add:
Set the environment scope to Production (and optionally Preview with a staging backend URL).
| Variable | Value |
|---|---|
NEXT_PUBLIC_API_URL | https://api.your-backend-domain.com |
Deploy
Trigger a deployment from the dashboard by pushing to your main branch, or run from the CLI:Vercel runs
next build automatically using the environment variables you configured.Required environment variables in production
Only one environment variable is required to run the panel:| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_API_URL | Yes | The base URL of the NestJS backend (no trailing slash) |
Deployment checklist
Before sending production traffic to the panel, verify the following:NEXT_PUBLIC_API_URLis set to the production backend URL in your deployment environment- The NestJS backend is running and accepts HTTPS requests at that URL
- The backend’s CORS configuration allows the production domain of the admin panel
pnpm buildcompletes without errors when using the productionNEXT_PUBLIC_API_URL- The
/authlogin page works end-to-end in production (NestJS sets theaccessTokencookie correctly) - Protected routes (
/fluvial/dashboard,/fluvial/tramites/permiso-operacion,/fluvial/tramites/renovacion) redirect unauthenticated visitors to/auth