chore: update doc to make DATABASE_URL required

This commit is contained in:
Tianzhou Chen
2023-05-06 01:44:55 +08:00
parent 5bb8a232e2
commit 8e3d220d0d
3 changed files with 31 additions and 28 deletions

5
process.d.ts vendored
View File

@ -2,12 +2,13 @@ declare namespace NodeJS {
export interface ProcessEnv {
// Required. Node environment.
NODE_ENV: string;
// Required. Postgres database connection string to store the data.
// e.g. postgresql://postgres:YOUR_PASSWORD@localhost:5432/sqlchat?schema=sqlchat
DATABASE_URL: string;
// Required. Do not share your OpenAI API key with anyone! It should remain a secret.
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 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;