feat: default disable balance query

This commit is contained in:
Yidadaa
2023-11-08 00:20:34 +08:00
parent 836bf836d3
commit 638fdd8c3e
9 changed files with 24 additions and 651 deletions

View File

@@ -12,7 +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
ENABLE_BALANCE_QUERY?: string; // allow user to query balance or not
}
}
}
@@ -47,6 +47,6 @@ export const getServerSideConfig = () => {
isVercel: !!process.env.VERCEL,
hideUserApiKey: !!process.env.HIDE_USER_API_KEY,
disableGPT4: !!process.env.DISABLE_GPT4,
hideBalanceQuery: !!process.env.HIDE_BALANCE_QUERY,
hideBalanceQuery: !process.env.ENABLE_BALANCE_QUERY,
};
};