mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 18:57:07 +08:00
feat: close #663 allow disable user api key input
This commit is contained in:
@@ -8,6 +8,7 @@ const serverConfig = getServerSideConfig();
|
||||
// 警告!不要在这里写入任何敏感信息!
|
||||
const DANGER_CONFIG = {
|
||||
needCode: serverConfig.needCode,
|
||||
hideUserApiKey: serverConfig.hideUserApiKey,
|
||||
};
|
||||
|
||||
declare global {
|
||||
@@ -15,9 +16,7 @@ declare global {
|
||||
}
|
||||
|
||||
export async function POST() {
|
||||
return NextResponse.json({
|
||||
needCode: serverConfig.needCode,
|
||||
});
|
||||
return NextResponse.json(DANGER_CONFIG);
|
||||
}
|
||||
|
||||
export const runtime = "edge";
|
||||
|
Reference in New Issue
Block a user