Skip to content

Commit aae8cab

Browse files
change comment
1 parent 0d74780 commit aae8cab

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
@@ -85,7 +85,7 @@ export function getCloudflareContext<
8585
// can work during SSG since for SSG Next.js creates (jest) workers that don't get access to the
8686
// normal global state. There isn't much we can do about this so we can only throw with a helpful
8787
// error message for the user.
88-
// Note: Next.js sets globalThis.__NEXT_DATA__.nextExport to true for the worker, so we can use that to detect
88+
// Note: Next.js sets globalThis.__NEXT_DATA__.nextExport to true for SSG routes, so we can use that to detect
8989
// wether the route is being SSG'd (source: https://github.com/vercel/next.js/blob/4e394608423/packages/next/src/export/worker.ts#L55-L57)
9090
if (!asyncMode && global.__NEXT_DATA__?.nextExport === true) {
9191
throw new Error(

0 commit comments

Comments
 (0)