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.
Hello @.lucascamargo ! 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!
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?
Good morning!
Hmmm
@.lucascamargo 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?
I just cloned the official repo and tried to upload the custom-server on vercel. But the admin route doesn't work.
hmm
Can you share some of the errors youre getting?
Admin route not working generally means an initial config issue
@.lucascamargo what repo?
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-demoPlease read the "Known gotchas" in the README though.
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.