-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
Describe the Bug
Seems I can't replace the /admin/create-first-user
view. So this isn't working:
admin: {
components: {
views: {
'create-first-user': {
Component: '@/components/CreateFirstUser',
path: '/create-first-user',
exact: true,
},
},
},
It still renders the old UI in place. For the plugin I am building (a better-auth integration) it is key to be able to also replace the existing routes.
Link to the code that reproduces this issue
https://github.com/benjaminpreiss/payload-repro
Reproduction Steps
npm install
npm run dev
- Visit the browser,
localhost:3000/admin
. This will redirect you tolocalhost:3000/admin/create-first-user
, but show the old UI
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: 1.22.22
pnpm: 10.8.0
Relevant Packages:
payload: 3.58.0
next: 15.4.4
@payloadcms/email-nodemailer: 3.58.0
@payloadcms/graphql: 3.58.0
@payloadcms/next/utilities: 3.58.0
@payloadcms/payload-cloud: 3.58.0
@payloadcms/richtext-lexical: 3.58.0
@payloadcms/translations: 3.58.0
@payloadcms/ui/shared: 3.58.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
mateusaires
Metadata
Metadata
Assignees
Labels
No labels