Add example env

This commit is contained in:
MartinBraquet
2025-07-28 13:37:14 +02:00
parent 642f825f70
commit 8de775302d
2 changed files with 21 additions and 1 deletions

20
.env.example Normal file
View File

@@ -0,0 +1,20 @@
# Use the Prisma Postgres integration from Vercel Marketeplace to automatically connect a Prisma Postgres instance
# Or manually run `npx prisma init --db` to create a Prisma Postgres and manually set the `DATABASE_URL` below
# Create a random 32-character string or run `npx auth secret` to obtain one and set it as the `AUTH_SECRET` below
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
# Email configuration
EMAIL_SERVER_HOST=smtp.resend.dev
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER=BayesBond
EMAIL_SERVER_PASSWORD=
RESEND_API_KEY=
EMAIL_FROM=
# Development (SQLite)
DATABASE_URL=file:./dev.db

View File

@@ -46,7 +46,7 @@ You now need to configure your database connection via an environment variable.
First, create an `.env` file:
```bash
touch .env
cp .env.example .env
```
To ensure your authentication works properly, you'll also need to set [env vars for NextAuth.js](https://next-auth.js.org/configuration/options):