Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

change route /admin to /admin-login but click on dashbord it redirect to /admin

default discord avatar
bhavikak.2 years ago
12


i'm waiting for response guy's

  • default discord avatar
    notchr2 years ago

    Hello

    @1043125033519820902

    !



    Did you try

    https://discord.com/channels/967097582721572934/1069354467687927859/1069354467687927859

    Updating yhour routes config?

  • default discord avatar
    bhavikak.2 years ago

    yes

    @1049775120559898725

    i added routes: {


    admin: '/oclogin',


    }, in payload.config.ts file

  • default discord avatar
    jessrynkar2 years ago

    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?

  • default discord avatar
    bhavikak.2 years ago

    hiii

    @854377910689202256

    my payload version is "payload": "^1.2.5",



    yes i checked my payload.config.ts it's same as to your example that you give.

  • default discord avatar
    notchr2 years ago
    @1043125033519820902

    Can we check out your config file?

  • default discord avatar
    bhavikak.2 years ago

    yes

    @1049775120559898725
  • default discord avatar
    jessrynkar2 years ago
    @1043125033519820902

    so you're finding that the custom admin route isn't taking effect?

  • default discord avatar
    notchr2 years ago
    @1043125033519820902

    Have you tried upgrading your version of Payload to latest?

  • discord user avatar
    jarrod_not_jared
    2 years ago

    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.

  • default discord avatar
    bhavikak.2 years ago
    @854377910689202256

    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.



  • default discord avatar
    notchr2 years ago
    @1043125033519820902

    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?

  • default discord avatar
    bhavikak.2 years ago

    i don't think so this issue is specific to one-click payload install.



    @281120856527077378

    i didn't rebuilt my project.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.