mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-28 03:29:22 +08:00
支持禁止用户输入API Key
This commit is contained in:
@@ -8,6 +8,7 @@ const serverConfig = getServerSideConfig();
|
||||
// 警告!不要在这里写入任何敏感信息!
|
||||
const DANGER_CONFIG = {
|
||||
needCode: serverConfig.needCode,
|
||||
disableUserToken: serverConfig.disableUserToken,
|
||||
};
|
||||
|
||||
declare global {
|
||||
@@ -17,5 +18,6 @@ declare global {
|
||||
export async function POST(req: NextRequest) {
|
||||
return NextResponse.json({
|
||||
needCode: serverConfig.needCode,
|
||||
disableUserToken: serverConfig.disableUserToken,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user