feat: close #2908 allow to disable parse settings from link

This commit is contained in:
Yidadaa
2023-11-08 00:30:02 +08:00
parent 638fdd8c3e
commit c5ca278253
7 changed files with 29 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ declare global {
BUILD_MODE?: "standalone" | "export";
BUILD_APP?: string; // is building desktop app
ENABLE_BALANCE_QUERY?: string; // allow user to query balance or not
DISABLE_FAST_LINK?: string; // disallow parse settings from url or not
}
}
}
@@ -48,5 +49,6 @@ export const getServerSideConfig = () => {
hideUserApiKey: !!process.env.HIDE_USER_API_KEY,
disableGPT4: !!process.env.DISABLE_GPT4,
hideBalanceQuery: !process.env.ENABLE_BALANCE_QUERY,
disableFastLink: !!process.env.DISABLE_FAST_LINK,
};
};