ReservaFácil requires three environment variables to run. These control how the application connects to its PostgreSQL database, how it signs and verifies JWT authentication tokens, and what public URL it considers canonical in production. All three are defined inDocumentation 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.
.env.example at the root of the repository — copy this file to .env.local for local development before starting the server.
Example File
The full contents of.env.example as shipped in the repository:
Variable Reference
The full PostgreSQL connection string used by Prisma to connect to your database. Must follow the format:Replace
user, password, host, and the database name (reservafacil) with your actual credentials. The ?sslmode=require flag is needed for most hosted PostgreSQL providers (including Neon, Supabase, and Railway) and should be kept in place for production use. For a local PostgreSQL instance without SSL you can omit it:A secret string used to sign and verify JSON Web Tokens with the HS256 algorithm via the See Generating a Secure JWT Secret below for a one-liner to produce a cryptographically safe value.
jose library. This value must be at least 32 characters long. Tokens are stored in an HTTP-only cookie named token with a 7-day expiry — anyone who obtains this secret can forge valid tokens, so treat it like a password.The full canonical public URL of your deployed application, including the This variable is not required for local development — you can leave the placeholder value in
https:// scheme and no trailing slash. This is used to construct absolute URLs in production contexts..env.local and the app will function correctly at http://localhost:3000. It becomes required when deploying to a hosting provider such as Vercel.Generating a Secure JWT Secret
Never use a short or guessable string as yourJWT_SECRET. Use openssl to generate a cryptographically random 32-byte value encoded as base64 (44 characters):
.env.local:
openssl is not available on your system, Node.js works equally well:
Local vs. Production Environment Files
ReservaFácil follows the standard Next.js convention for environment files:| File | When it’s loaded | Commit to Git? |
|---|---|---|
.env.example | Never loaded automatically — reference only | ✅ Yes |
.env.local | Local development (next dev) | ❌ No |
.env | All environments (fallback) | ❌ No |
.env.local:
.env.local file. Instead, set each variable in the Vercel project dashboard under Settings → Environment Variables. Vercel injects them securely at build and runtime without exposing them in your repository.