i'm waiting for response guy's
Hello
@1043125033519820902!
Did you try
https://discord.com/channels/967097582721572934/1069354467687927859/1069354467687927859Updating yhour routes config?
yes
@1049775120559898725i added routes: {
admin: '/oclogin',
}, in payload.config.ts file
hey
@1043125033519820902- what version of payload are you on? what you have done looks correct, the code you shared above should be all you need.
To double check, your routes are defined at the top level of
buildConfig
within your
payload.config.ts
file correct?
hiii
@854377910689202256my payload version is "payload": "^1.2.5",
yes i checked my payload.config.ts it's same as to your example that you give.
Can we check out your config file?
yes
@1049775120559898725so you're finding that the custom admin route isn't taking effect?
Have you tried upgrading your version of Payload to latest?
This does work, I just tested it. I would ensure you are running in dev mode or you have rebuilt your project if you are running a prod version.
custom admin route working fine but only on breadcrumb issue is accrued.
yes i tried to update version. but after updating payload version when i run the project i'm getting thi error.
This issue seems unrelated to the original issue, but still an issue
I'm wondering if it's specific to the one-click payload install
Though, this seems like a graphQL issue with parsing enum values?
i don't think so this issue is specific to one-click payload install.
i didn't rebuilt my project.
Star
Discord
online
Get dedicated engineering support directly from the Payload team.