Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Sep 27, 2024
1 parent 702e17c commit 3fb3895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function request(req: NextRequest, apiKey: string) {
"Cache-Control": "no-store",
"x-google-api-key":
req.headers.get("x-google-api-key") ||
(req.headers.get("Authorization") ?? "").replace("Bearer "),
(req.headers.get("Authorization") ?? "").replace("Bearer ", ""),
},
method: req.method,
body: req.body,
Expand Down

0 comments on commit 3fb3895

Please sign in to comment.