Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Mar 29, 2023
1 parent cd97995 commit 469c8e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 469c8e9

Please sign in to comment.