diff --git a/.env.example b/.env.example index b668be31f..6c2dfde8c 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ +# [Recommended] Important application information +NEXT_PUBLIC_PRIVACY_POLICY_URL= + # [Recommended for local deployments] Backend API key for OpenAI, so that users don't need one (UI > this > '') OPENAI_API_KEY= # [Optional] Sets the "OpenAI-Organization" header field to support organization users (UI > this > '') diff --git a/src/common/brand.ts b/src/common/brand.ts index 65f350f2e..262a00964 100644 --- a/src/common/brand.ts +++ b/src/common/brand.ts @@ -24,5 +24,6 @@ export const Brand = { OpenRepo: 'https://github.com/enricoros/big-agi', SupportInvite: 'https://discord.gg/MkH4qj2Jp9', // Twitter: 'https://www.twitter.com/enricoros', + PrivacyPolicy: process.env.NEXT_PUBLIC_PRIVACY_POLICY_URL || undefined, }, }; \ No newline at end of file diff --git a/src/common/types/env.d.ts b/src/common/types/env.d.ts index 9d5481559..33cba0add 100644 --- a/src/common/types/env.d.ts +++ b/src/common/types/env.d.ts @@ -40,6 +40,9 @@ declare namespace NodeJS { interface ProcessEnv { + // Application Identity + NEXT_PUBLIC_PRIVACY_POLICY_URL?: string; + // set in next.config.js and available to the client-side HAS_SERVER_KEYS_GOOGLE_CSE: boolean; HAS_SERVER_KEY_ANTHROPIC?: boolean;