mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 01:08:41 +08:00
fixup
This commit is contained in:
@@ -31,7 +31,6 @@ export function middleware(req: NextRequest) {
|
||||
// inject api key
|
||||
if (!token) {
|
||||
const apiKey = process.env.OPENAI_API_KEY;
|
||||
console.log("apiKey", apiKey);
|
||||
if (apiKey) {
|
||||
req.headers.set("token", apiKey);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user