Inventario SUD reads configuration from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ChrisCore1/inventario_sud/llms.txt
Use this file to discover all available pages before exploring further.
.env.local file in the project root. This file is never committed to version control (it is listed in .gitignore), so you must create it on every machine where you run the app. Copy .env.example to .env.local and fill in each variable described below.
Database
The connection string for your Neon PostgreSQL database. Copy it from the Neon console under Connection Details. It takes the form:
Authentication
The fully-qualified base URL of your application. During local development this is
http://localhost:3000. In production, set it to your public domain (e.g., https://inventario.example.com).A random secret used by NextAuth to sign session tokens and cookies. Generate a secure value with:
Email (password reset)
Inventario SUD uses Nodemailer to send PIN-based password reset emails. All four variables below are required for the password reset flow to work.Hostname of your SMTP server. For Gmail use
smtp.gmail.com.SMTP port. Use
587 for STARTTLS (recommended) or 465 for SSL.The email address used to authenticate with the SMTP server and appears as the sender on outgoing messages.
The password or app-specific password for the SMTP account. For Gmail, generate an App Password rather than using your main account password.
Complete example
.env.local
Seed the first user
After setting your environment variables, run the seed script to create an initial user in the database:scripts/add-user.ts to set the email address, password, and role before running this command. You can run it again after changing those values to add additional users.
