Vercel is the recommended platform for hosting ReservaFácil. Its native Next.js support means zero-configuration builds, automatic HTTPS, and seamless preview deployments — all available on the free Hobby tier. This guide walks you through importing your repository, wiring up the required environment variables, and pushing the database schema so your production instance is ready to accept bookings.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Nyverie/reservafacil/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following ready:GitHub Repository
Your ReservaFácil source code pushed to a public or private GitHub repo.
Vercel Account
A free account at vercel.com. Sign up with your GitHub account for one-click repo access.
PostgreSQL Database
A production database connection string. Neon.tech provides a generous free tier with SSL enabled by default.
Deployment Steps
Push your code to GitHub
Ensure your latest changes are committed and pushed to the
main branch (or whichever branch you want Vercel to deploy from).Import your project on Vercel
- Go to vercel.com/new and click Add New → Project.
- Select Continue with GitHub and authorise Vercel to access your repositories.
- Find your
reservafacilrepo in the list and click Import. - Vercel auto-detects the Next.js framework — leave all build settings at their defaults.
Configure environment variables
Before clicking Deploy, expand the Environment Variables panel and add the three required variables:
| Variable | Value |
|---|---|
DATABASE_URL | Your PostgreSQL connection string (e.g. from Neon.tech) |
JWT_SECRET | A random secret — minimum 32 characters (see below) |
NEXTAUTH_URL | The Vercel URL Vercel assigns, e.g. https://your-project.vercel.app |
Generating a secure JWT secret
Run the following command locally and paste the output as the value forJWT_SECRET:You can also add or update environment variables at any time from Project Settings → Environment Variables in the Vercel dashboard. Changes take effect on the next deployment.
Deploy the project
Click Deploy. Vercel will clone your repository, run The initial build typically takes 60–90 seconds. Once the confetti animation appears, your app is live — but the database schema has not been applied yet. Continue to the next step before testing.
npm install, then execute next build.The
postinstall script in package.json runs prisma generate automatically every time npm install is executed — including on every Vercel build. You never need to call prisma generate manually in CI.Push the database schema
With This reads
DATABASE_URL set to your production connection string in your local .env.local (or exported in your shell), run the following command from the project root:prisma/schema.prisma and creates all tables, enums, and indexes in your production database without generating a migration history file — ideal for first-time setup and simple deployments.You should see output similar to:Verify the deployment
Open your production URL (e.g.
https://your-project.vercel.app) in a browser. You should see the ReservaFácil landing page. Attempt to log in or register a new account to confirm the database connection is working end-to-end.If you encounter a 500 error, check Vercel Dashboard → Project → Deployments → (latest) → Logs for the exact error message — missing environment variables and incorrect DATABASE_URL formats are the most common culprits.Preview Deployments
Environment Variable Reference
The table below summarises every variable ReservaFácil reads at runtime. All three must be present for the app to start correctly.| Variable | Example value | Required |
|---|---|---|
DATABASE_URL | postgresql://user:password@host:5432/reservafacil?sslmode=require | ✅ |
JWT_SECRET | K7gNU3sdo+OL0wNhqoVWhr3g6s1xYv72... | ✅ |
NEXTAUTH_URL | https://your-project.vercel.app | ✅ |