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.

Admin doesn't work in production

default discord avatar
.lucascamargo2 years ago
8

Admin route does not work with the application in production hosted on vercel. I'm using custom-server. Locally it works, in prod it doesn't.

  • default discord avatar
    notchr2 years ago

    Hello

    @361683890148081688

    ! Good morning



    When setting up payload to be on a different url, like

    /payload

    there is some additional configuration



    check out:

    https://nouance.io/articles/how-to-host-payloadcms-on-a-subdomain-and-subpath-with-nginx

    Which has some solid information about payload base route changes



    If you still need help after, let us know!

  • default discord avatar
    .lucascamargo2 years ago

    Helloo. hmm, understood. I also tested it without this additional configuration that I made "/payload", and it still wasn't working.



    can you help me?

  • default discord avatar
    notchr2 years ago

    Good morning!



    Hmmm



    @361683890148081688

    Could you please give me a little context for the issue - happy to help!



    For instance, is this based on a template or the default installation of payload?

  • default discord avatar
    .lucascamargo2 years ago

    I just cloned the official repo and tried to upload the custom-server on vercel. But the admin route doesn't work.

  • default discord avatar
    notchr2 years ago

    hmm



    Can you share some of the errors youre getting?



    Admin route not working generally means an initial config issue

  • discord user avatar
    jarrod_not_jared
    2 years ago
    @361683890148081688

    what repo?

  • default discord avatar
    .lucascamargo2 years ago
    https://github.com/payloadcms/payload/tree/master/examples/custom-server

    I just cloned and tried to climb the vercel. I don't know if I need to do any additional configuration for this to work

  • discord user avatar
    jarrod_not_jared
    2 years ago

    Custom servers cannot be deployed on Vercel, Vercel is

    serverless

    . We do have a repo that will deploy serverless:

    https://github.com/payloadcms/next-payload-demo

    Please read the "Known gotchas" in the README though.

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.