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