Keep withPayload (needed for build compilation) but replace the admin RootPage with a redirect. The RootPage's ConfigProvider causes React #130 in standalone output. Blog/changelog use server-side getPayload() which works fine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 lines
269 B
TypeScript
9 lines
269 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
// Payload admin panel disabled in production (standalone output
|
|
// doesn't support Payload's server init). Content managed via
|
|
// local dev server or API.
|
|
export default function PayloadAdminRedirect() {
|
|
redirect("/");
|
|
}
|