fix(admin): disable all custom components due to path-to-regexp bug

TenantBreadcrumb in afterNavLinks also triggers the error on production.
Completely disabling admin.components until Payload fixes the issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2025-12-20 15:07:32 +00:00
parent 4129ec516b
commit 85b7ddd7bd

View file

@ -97,19 +97,19 @@ export default buildConfig({
serverURL: process.env.PAYLOAD_PUBLIC_SERVER_URL || 'https://pl.porwoll.tech', serverURL: process.env.PAYLOAD_PUBLIC_SERVER_URL || 'https://pl.porwoll.tech',
admin: { admin: {
user: Users.slug, user: Users.slug,
components: { // All custom components disabled due to path-to-regexp bug
// Tenant-Kontext in der Admin-Header-Leiste anzeigen // See BUG_REPORT_CUSTOM_VIEWS.md for details
afterNavLinks: ['@/components/admin/TenantBreadcrumb#TenantBreadcrumb'], // TypeError: Missing parameter name at 5
// Custom Views disabled due to bug - see https://github.com/payloadcms/payload/issues/XXXX // components: {
// TypeError: Missing parameter name at 5 (path-to-regexp error) // afterNavLinks: ['@/components/admin/TenantBreadcrumb#TenantBreadcrumb'],
// views: { // views: {
// TenantDashboard: { // TenantDashboard: {
// Component: '@/components/admin/TenantDashboardView#TenantDashboardView', // Component: '@/components/admin/TenantDashboardView#TenantDashboardView',
// path: '/tenant-dashboard', // path: '/tenant-dashboard',
// }, // },
// }, // },
// beforeNavLinks: ['@/components/admin/DashboardNavLink#DashboardNavLink'], // beforeNavLinks: ['@/components/admin/DashboardNavLink#DashboardNavLink'],
}, // },
}, },
// Multi-Tenant Email Adapter // Multi-Tenant Email Adapter
email: multiTenantEmailAdapter, email: multiTenantEmailAdapter,