MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / ProcessEnv

Interface ProcessEnv

process.d.ts:2–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1declare namespace NodeJS {
2 export interface ProcessEnv {
3 // Required. Node environment.
4 NODE_ENV: string;
5 // Optional. Set to "true" to use the database. Need to use string as env is always string.
6 // We can't prefix DATABASE_URL with NEXT_PUBLIC_ because it contains sensitive information that
7 // should not be exposed to the client.
8 NEXT_PUBLIC_USE_DATABASE: string;
9 // Required if NEXT_PUBLIC_USE_DATABASE is true. Postgres database connection string to store
10 // the data. e.g. postgresql://postgres:YOUR_PASSWORD@localhost:5432/sqlchat?schema=sqlchat
11 DATABASE_URL: string;
12 // Optional. Set to "true" to allow users to bring their own OpenAI API key.
13 NEXT_PUBLIC_ALLOW_SELF_OPENAI_KEY: string;
14 // Required. Do not share your OpenAI API key with anyone! It should remain a secret.
15 OPENAI_API_KEY: string;
16 // Optional.For users who belong to multiple organizations,
17 // you can pass a header to specify which organization is used for an API request.
18 // Usage from these API requests will count as usage for the specified organization.
19 OPENAI_ORGANIZATION: string;
20 // Optional. OpenAI API endpoint. Defaults to https://api.openai.com.
21 OPENAI_API_ENDPOINT: string;
22 // Optional. NextAuth.js URL. Defaults to the current domain.
23 NEXTAUTH_URL: string;
24 // Optional. NextAuth.js secret. Defaults to a randomly generated string.
25 NEXTAUTH_SECRET: string;
26 // Optional. NextAuth.js GitHub OAuth client ID.
27 GITHUB_ID: string;
28 // Optional. NextAuth.js GitHub OAuth client secret.
29 GITHUB_SECRET: string;
30 // Optional. NextAuth.js Google OAuth client ID.
31 GOOGLE_CLIENT_ID: string;
32 // Optional. NextAuth.js Google OAuth client secret.
33 GOOGLE_CLIENT_SECRET: string;
34 // Optional. NextAuth.js email server.
35 // This can't be tested locally. Must be deployed to the web to send mail.
36 // https://next-auth.js.org/providers/email
37 EMAIL_SERVER: string;
38 EMAIL_FROM: string;
39 // Optional. Stripe publishable key.
40 NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: string;
41 // Optional. Stripe API key.
42 STRIPE_API_KEY: string;
43 // Optional. Stripe webhook secret.
44 STRIPE_WEBHOOK_SECRET: string;
45 // Optional. Stripe price id for Pro plan 1 month subscription.
46 NEXT_PUBLIC_STRIPE_PRICE_ID_PRO_1_MONTH_SUBSCRIPTION: string;
47 // Optional. Stripe price id for Pro plan 3 month subscription.
48 NEXT_PUBLIC_STRIPE_PRICE_ID_PRO_3_MONTH_SUBSCRIPTION: string;
49 // Optional. Stripe price id for Pro plan 1 year subscription.
50 NEXT_PUBLIC_STRIPE_PRICE_ID_PRO_1_YEAR_SUBSCRIPTION: string;
51 }
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected