Files
claudemesh/apps/web/src/app/(payload)/payload/[[...segments]]/page.tsx
Alejandro Gutiérrez 78c80cc43c
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled
fix(web): withPayload for build, admin redirects to home
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>
2026-04-06 02:26:13 +01:00

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("/");
}