chore: change USAGE_DATABASE_URL to DATABASE_URL

This commit is contained in:
Tianzhou Chen
2023-05-02 17:47:57 +08:00
parent 0306b10902
commit 6ce7d9862c
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ generator client {
datasource db {
provider = "postgresql"
url = env("USAGE_DATABASE_URL")
url = env("DATABASE_URL")
}
model Chat {

4
process.d.ts vendored
View File

@ -4,8 +4,8 @@ declare namespace NodeJS {
OPENAI_API_KEY: string;
// Optional. OpenAI API endpoint. Defaults to https://api.openai.com.
OPENAI_API_ENDPOINT: string;
// Optional. Database connection string to store the usage data.
USAGE_DATABASE_URL: string;
// Optional. Database connection string to store the data.
DATABASE_URL: string;
// Optional. API key to protect the backend API endpoint.
// This needs to be exposed to the frontend and must be prefixed with NEXT_PUBLIC_.
NEXT_PUBLIC_API_KEY: string;