Skip to content

Commit 9fc7fad

Browse files
committed
Fix type
1 parent 0c8c571 commit 9fc7fad

File tree

1 file changed

+1
-1
lines changed
  • packages/gitbook-v2/src/lib/data

1 file changed

+1
-1
lines changed

Diff for: packages/gitbook-v2/src/lib/data/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ export async function apiClient(input: DataFetcherInput = { apiToken: null }) {
675675

676676
const cloudflareContext = await getCloudflareContext();
677677
if (cloudflareContext) {
678-
serviceBinding = cloudflareContext.env.GITBOOK_API;
678+
serviceBinding = cloudflareContext.env.GITBOOK_API as GitBookAPIServiceBinding | undefined;
679679
if (!loggedServiceBinding) {
680680
loggedServiceBinding = true;
681681
if (serviceBinding) {

0 commit comments

Comments
 (0)