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
.lucascamargolast year
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
    notchrlast year

    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
    .lucascamargolast year

    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
    notchrlast year

    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
    .lucascamargolast year

    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
    notchrlast year

    hmm



    Can you share some of the errors youre getting?



    Admin route not working generally means an initial config issue

  • @361683890148081688

    what repo?

  • default discord avatar
    .lucascamargolast year
    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

  • 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.