{"version":3,"sources":["../../../../src/server/app-render/blocking-route-messages.ts"],"sourcesContent":["export function createRuntimeBodyError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered runtime data during prerendering.\\n\\n` +\n      `\\`cookies()\\`, \\`headers()\\`, \\`params\\`, or \\`searchParams\\` accessed outside of \\`<Suspense>\\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`\n  )\n}\n\nexport function createDynamicBodyError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached data during prerendering.\\n\\n` +\n      `\\`fetch(...)\\` or \\`connection()\\` accessed outside of \\`<Suspense>\\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [cache] Cache the data access with \\`\"use cache\"\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`\n  )\n}\n\nexport function createRuntimeBodyErrorInNavigation(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered runtime data during prerendering or a navigation.\\n\\n` +\n      `\\`cookies()\\`, \\`headers()\\`, \\`params\\`, or \\`searchParams\\` accessed outside of \\`<Suspense>\\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`\n  )\n}\n\nexport function createLinkBodyErrorInNavigation(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered URL data during prerendering or a navigation.\\n\\n` +\n      `\\`params\\` or \\`searchParams\\` accessed outside of \\`<Suspense>\\` may prevent the navigation from being instant, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/instant-shell-url-data`\n  )\n}\n\nexport function createDynamicBodyErrorInNavigation(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached data during prerendering or a navigation.\\n\\n` +\n      `\\`fetch(...)\\` or \\`connection()\\` accessed outside of \\`<Suspense>\\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [cache] Cache the data access with \\`\"use cache\"\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`\n  )\n}\n\n/**\n * NOTE: Prefer `createRuntimeBodyError` or `createDynamicBodyError`.\n * Only use this in situations like build-time static validation, where\n * we can't pinpoint a more specific reason.\n */\nexport function createDynamicOrRuntimeBodyError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached or runtime data during prerendering.\\n\\n` +\n      `\\`fetch(...)\\`, \\`cookies()\\`, \\`headers()\\`, \\`params\\`, \\`searchParams\\`, or \\`connection()\\` accessed outside of \\`<Suspense>\\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Provide a placeholder with \\`<Suspense fallback={...}>\\` around the data access\\n` +\n      `  - [cache] For uncached data (\\`fetch\\`, database calls): cache the access with \\`\"use cache\"\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`\n  )\n}\n\nexport function createLinkMetadataError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered URL data in \\`generateMetadata()\\`.\\n\\n` +\n      `This route's metadata is blocked, but the rest of its content can be prefetched. \\`params\\` or \\`searchParams\\` accessed in \\`generateMetadata()\\` prevent it from being prefetched.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static metadata export instead of \\`generateMetadata()\\`\\n` +\n      `  - [dynamic] Render a marker component that calls \\`await connection()\\` inside \\`<Suspense>\\` on the page\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`\n  )\n}\n\nexport function createRuntimeMetadataError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered runtime data in \\`generateMetadata()\\`.\\n\\n` +\n      `This route's metadata is blocked, but the rest of its content can be prerendered. \\`cookies()\\`, \\`headers()\\`, \\`params\\`, or \\`searchParams\\` accessed in \\`generateMetadata()\\` cause it to run dynamically.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static metadata export instead of \\`generateMetadata()\\`\\n` +\n      `  - [dynamic] Render a marker component that calls \\`await connection()\\` inside \\`<Suspense>\\` on the page\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`\n  )\n}\n\nexport function createDynamicMetadataError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached data in \\`generateMetadata()\\`.\\n\\n` +\n      `This route's metadata is blocked, but the rest of its content can be prerendered. \\`fetch(...)\\` or \\`connection()\\` accessed in \\`generateMetadata()\\` cause it to run dynamically.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [cache] Cache the metadata with \\`\"use cache\"\\` in \\`generateMetadata()\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [dynamic] Render a marker component that calls \\`await connection()\\` inside \\`<Suspense>\\` on the page\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-dynamic`\n  )\n}\n\nexport function createLinkViewportError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered URL data in \\`generateViewport()\\`.\\n\\n` +\n      `\\`params\\` or \\`searchParams\\` in \\`generateViewport()\\` prevents the page from being prerendered, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static viewport export instead of \\`generateViewport()\\`\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`\n  )\n}\n\nexport function createRuntimeViewportError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered runtime data in \\`generateViewport()\\`.\\n\\n` +\n      `\\`cookies()\\`, \\`headers()\\`, \\`params\\`, or \\`searchParams\\` in \\`generateViewport()\\` prevents the page from being prerendered, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static viewport export instead of \\`generateViewport()\\`\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`\n  )\n}\n\nexport function createDynamicViewportError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached data in \\`generateViewport()\\`.\\n\\n` +\n      `\\`fetch(...)\\` or \\`connection()\\` in \\`generateViewport()\\` prevents the page from being prerendered, leading to a slower user experience.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [cache] Cache the viewport data with \\`\"use cache\"\\` in \\`generateViewport()\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-dynamic`\n  )\n}\n\n/**\n * NOTE: Prefer `createRuntimeViewportError` or `createDynamicViewportError`.\n * Only use this in situations like build-time static validation, where\n * we can't pinpoint a more specific reason.\n */\nexport function createDynamicOrRuntimeViewportError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached or runtime data in \\`generateViewport()\\`.\\n\\n` +\n      `This prevents the page from being prerendered, leading to a slower user experience. Unlike metadata, viewport cannot be streamed behind \\`<Suspense>\\` because it affects the initial page load.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static viewport export instead of \\`generateViewport()\\`\\n` +\n      `  - [cache] For uncached data (\\`fetch\\`, database calls): cache the viewport with \\`\"use cache\"\\` in \\`generateViewport()\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`\n  )\n}\n\n/**\n * NOTE: Prefer `createRuntimeMetadataError` or `createDynamicMetadataError`.\n * Only use this in situations like build-time static validation, where\n * we can't pinpoint a more specific reason.\n */\nexport function createDynamicOrRuntimeMetadataError(route: string): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered uncached or runtime data in \\`generateMetadata()\\`.\\n\\n` +\n      `This route's metadata is blocked, but the rest of its content can be prerendered.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [static] Use a static metadata export instead of \\`generateMetadata()\\`\\n` +\n      `  - [cache] Cache the metadata with \\`\"use cache\"\\` in \\`generateMetadata()\\` (does not apply to \\`connection()\\`)\\n` +\n      `  - [dynamic] Render a marker component that calls \\`await connection()\\` inside \\`<Suspense>\\` on the page\\n\\n` +\n      `Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`\n  )\n}\n\nexport function logBuildDebugHint(route: string): void {\n  if (process.env.NODE_ENV !== 'development') {\n    console.error(\n      `To get a more detailed stack trace and pinpoint the issue, try one of the following:\\n` +\n        `  - Start the app in development mode by running \\`next dev\\`, then open \"${route}\" in your browser to investigate the error.\\n` +\n        `  - Rerun the production build with \\`next build --debug-prerender\\` to generate better stack traces.`\n    )\n  } else if (!process.env.__NEXT_DEV_SERVER) {\n    console.error(\n      `To debug the issue, start the app in development mode by running \\`next dev\\`, then open \"${route}\" in your browser to investigate the error.`\n    )\n  }\n}\n"],"names":["createRuntimeBodyError","route","Error","createDynamicBodyError","createRuntimeBodyErrorInNavigation","createLinkBodyErrorInNavigation","createDynamicBodyErrorInNavigation","createDynamicOrRuntimeBodyError","createLinkMetadataError","createRuntimeMetadataError","createDynamicMetadataError","createLinkViewportError","createRuntimeViewportError","createDynamicViewportError","createDynamicOrRuntimeViewportError","createDynamicOrRuntimeMetadataError","logBuildDebugHint","process","env","NODE_ENV","console","error","__NEXT_DEV_SERVER"],"mappings":"AAAA,OAAO,SAASA,uBAAuBC,KAAa;IAClD,OAAO,qBAON,CAPM,IAAIC,MACT,CAAC,OAAO,EAAED,MAAM,4DAA4D,CAAC,GAC3E,CAAC,+MAA+M,CAAC,GACjN,CAAC,mBAAmB,CAAC,GACrB,CAAC,8FAA8F,CAAC,GAChG,CAAC,8EAA8E,CAAC,GAChF,CAAC,uEAAuE,CAAC,GANtE,qBAAA;eAAA;oBAAA;sBAAA;IAOP;AACF;AAEA,OAAO,SAASE,uBAAuBF,KAAa;IAClD,OAAO,qBAQN,CARM,IAAIC,MACT,CAAC,OAAO,EAAED,MAAM,6DAA6D,CAAC,GAC5E,CAAC,oLAAoL,CAAC,GACtL,CAAC,mBAAmB,CAAC,GACrB,CAAC,8FAA8F,CAAC,GAChG,CAAC,6FAA6F,CAAC,GAC/F,CAAC,8EAA8E,CAAC,GAChF,CAAC,uEAAuE,CAAC,GAPtE,qBAAA;eAAA;oBAAA;sBAAA;IAQP;AACF;AAEA,OAAO,SAASG,mCAAmCH,KAAa;IAC9D,OAAO,qBAON,CAPM,IAAIC,MACT,CAAC,OAAO,EAAED,MAAM,4EAA4E,CAAC,GAC3F,CAAC,yN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