Bistro Logo

Configuration

Learn how to configure the project.

Environment variables

The project uses environment variables to store sensitive information like API keys and database credentials. To use environment variables, you need to set them in the .env file.

Here is an example of the .env file:

.env
# Authentication crypt
NUXT_SESSION_PASSWORD=must-be-at-least-32-characters

# GitHub credentials
NUXT_OAUTH_GITHUB_CLIENT_ID="<your-github-client-id>"
NUXT_OAUTH_GITHUB_CLIENT_SECRET="<your-github-client-secret>"

# Resend credentials
RESEND_API_KEY="<resend-api-key>"
RESEND_AUDIENCE_ID="<resend-audience-id>"

# Database credentials
DATABASE_URL="file:./dev.db"

If you want to use a different database, you can change the DATABASE_URL variable and the database type of schema.prisma.