We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c8c571 commit 9fc7fadCopy full SHA for 9fc7fad
packages/gitbook-v2/src/lib/data/api.ts
@@ -675,7 +675,7 @@ export async function apiClient(input: DataFetcherInput = { apiToken: null }) {
675
676
const cloudflareContext = await getCloudflareContext();
677
if (cloudflareContext) {
678
- serviceBinding = cloudflareContext.env.GITBOOK_API;
+ serviceBinding = cloudflareContext.env.GITBOOK_API as GitBookAPIServiceBinding | undefined;
679
if (!loggedServiceBinding) {
680
loggedServiceBinding = true;
681
if (serviceBinding) {
0 commit comments