Skip to content

Commit

Permalink
fix: empty apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 2, 2023
1 parent 31dff80 commit 158e215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware.ts
Expand Up @@ -39,6 +39,7 @@ export async function middleware(req: NextRequest, context: NextFetchEvent) {

// licenseKeys
if (
apiKey &&
!apiKey.startsWith(`sk-`) &&
licenseKeys?.includes(apiKey.toLowerCase())
) {
Expand Down

1 comment on commit 158e215

@vercel
Copy link

@vercel vercel bot commented on 158e215 Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.