Skip to content

Commit 2e99410

Browse files
Apply suggestions from code review
Co-authored-by: Victor Berchet <[email protected]>
1 parent 3cc360b commit 2e99410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export function getCloudflareContext<
111111
);
112112
}
113113

114-
// the cloudflare context is initialized by the worker and is always present in production/preview
115-
// during local development (`next dev`) it might be missing only if the developers hasn't called
114+
// The cloudflare context is initialized by the worker so it is always available.
115+
// During local development (`next dev`) it might be missing only if the developers hasn't called
116116
// the `initOpenNextCloudflareForDev` function in their Next.js config file
117117
throw new Error(
118118
`\n\nERROR: \`getCloudflareContext\` has been called without having called` +

0 commit comments

Comments
 (0)