exemple: add a .env.exemple to create your own .env

This commit is contained in:
Pierre Ryssen
2026-03-03 15:48:47 +01:00
parent 53c5d952b5
commit a123482b89

17
.env.example Normal file
View File

@@ -0,0 +1,17 @@
# Environment variables declared in this file are NOT automatically loaded by Prisma.
# Please add `import "dotenv/config";` to your `prisma.config.ts` file, or use the Prisma CLI with Bun
# to load environment variables from .env files: https://pris.ly/prisma-config-env-vars.
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
# The following `prisma+postgres` URL is similar to the URL produced by running a local Prisma Postgres
# server with the `prisma dev` CLI command, when not choosing any non-default ports or settings. The API key, unlike the
# one found in a remote Prisma Postgres URL, does not contain any sensitive information.
DATABASE_URL="postgresql://wyview:wyview@localhost:5432/wyview"
NEXT_PUBLIC_PASSWORD=Azerty123
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=http://localhost:3000
AUTH_SECRET="openssl rand -base64 32"