Selaa lähdekoodia

fix: build error

Dogtiti 1 vuosi sitten
vanhempi
commit
3fb389551b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/api/google.ts

+ 1 - 1
app/api/google.ts

@@ -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,