Skip to content

Commit

Permalink
fix(Middleware): Removed API Key Check
Browse files Browse the repository at this point in the history
  • Loading branch information
andy1uu committed May 6, 2024
1 parent 38eacd0 commit 3d249a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { NextRequest } from "next/server";

export const middleware = (request: NextRequest) => {

const apiKey = request.headers.get("API-Key");
/* const apiKey = request.headers.get("API-Key");
if (apiKey !== process.env.API_KEY) {
return new NextResponse(null, {
Expand All @@ -12,7 +12,7 @@ export const middleware = (request: NextRequest) => {
headers: { "Content-Type": "application/json" },
});
}

*/
return NextResponse.next();
};

Expand Down

0 comments on commit 3d249a9

Please sign in to comment.