This commit is contained in:
Yifei Zhang 2023-03-29 17:53:46 +00:00
parent cd9799588d
commit 469c8e9b00

View File

@ -31,7 +31,6 @@ export function middleware(req: NextRequest) {
// inject api key // inject api key
if (!token) { if (!token) {
const apiKey = process.env.OPENAI_API_KEY; const apiKey = process.env.OPENAI_API_KEY;
console.log("apiKey", apiKey);
if (apiKey) { if (apiKey) {
req.headers.set("token", apiKey); req.headers.set("token", apiKey);
} else { } else {