Skip to content

Commit

Permalink
Privacy policy URL, available to the Client side
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Oct 16, 2023
1 parent 8661bf6 commit 69db13e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -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 > '')
Expand Down
1 change: 1 addition & 0 deletions src/common/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
3 changes: 3 additions & 0 deletions src/common/types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 69db13e

@vercel
Copy link

@vercel vercel bot commented on 69db13e Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-git-main-enricoros.vercel.app
get.big-agi.com
big-agi-enricoros.vercel.app

Please sign in to comment.