feat: add "Hide_Balance_Query" environment variable

This commit is contained in:
Constaline
2023-06-25 20:20:36 +08:00
parent 8f66da1128
commit c05de45d99
8 changed files with 49 additions and 23 deletions

View File

@@ -12,6 +12,7 @@ declare global {
DISABLE_GPT4?: string; // allow user to use gpt-4 or not
BUILD_MODE?: "standalone" | "export";
BUILD_APP?: string; // is building desktop app
Hide_Balance_Query?: string; // allow user to query balance or not
}
}
}
@@ -46,5 +47,6 @@ export const getServerSideConfig = () => {
isVercel: !!process.env.VERCEL,
hideUserApiKey: !!process.env.HIDE_USER_API_KEY,
enableGPT4: !process.env.DISABLE_GPT4,
hideBalanceQuery: !!process.env.Hide_Balance_Query,
};
};