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<
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 (
You can’t perform that action at this time.
0 commit comments