Skip to content

Commit 0d2dd9b

Browse files
Update packages/cloudflare/src/api/cloudflare-context.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent aae8cab commit 0d2dd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/api/cloudflare-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function getCloudflareContext<
9191
throw new Error(
9292
`\n\nERROR: \`getCloudflareContext\` has been called in a static route` +
9393
` that is not allowed, this can be solved in different ways:\n\n` +
94-
` - call \`getCloudflareContext\` in \`async\` mode\n` +
94+
` - call \`getCloudflareContext({async: true})\` to use the \`async\` mode\n` +
9595
` - avoid calling \`getCloudflareContext\` in the route\n` +
9696
` - make the route non static\n`
9797
);

0 commit comments

Comments
 (0)