File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
packages/cloudflare/src/api Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export function getCloudflareContext<
85
85
// can work during SSG since for SSG Next.js creates (jest) workers that don't get access to the
86
86
// normal global state. There isn't much we can do about this so we can only throw with a helpful
87
87
// 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
89
89
// wether the route is being SSG'd (source: https://github.com/vercel/next.js/blob/4e394608423/packages/next/src/export/worker.ts#L55-L57)
90
90
if ( ! asyncMode && global . __NEXT_DATA__ ?. nextExport === true ) {
91
91
throw new Error (
You can’t perform that action at this time.
0 commit comments