Files
Jude GaoandGitHub 6797a087e5 Fix: Do not force BLOCKING_STATIC_RENDER for DOM bots (#82427)
The issue was that DOM bots with PPR-enabled routes were being forced to
use BLOCKING_STATIC_RENDER mode, which prevented them from using the
fallback cache lookup mechanism. This caused them to generate new
content with isRevalidating: true, which blocks postponed data and
triggers the Math.random() static generation bailout error.

For HTML bots, they keep using BLOCKING_STATIC_RENDER because SSG was
turned off for them and won't see the SSG bailout error. For DOM bots,
they should behave like a normal user.

Fixes NAR-273
2025-08-08 13:03:27 -04:00

23 lines
443 B
TypeScript

import React, { Suspense } from 'react'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'PPR Bot SSG Bypass Test',
description:
'Test bot static generation bypass with PPR and cache components',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>
<Suspense>{children}</Suspense>
</body>
</html>
)
}