Deploying on Vercel gives 404 on /admin #5080
-
Hey, brand new to Payload here so please bear with me I've been testing it out locally and I've been enjoying it. I've managed to set up a database using Mongo Atlas and I'm now trying to deploy my little experiment to Vercel where I'd ultimately look to host sites like these. The database connects, the site deploys without issue and I'm able to see the frontend (the Next.js part) of my site at this URL:
However, when I try to go to the admin area, here: If I try the /admin URL locally, it works absolutely fine. Am I missing a step here? Edit: It might be useful to include my Vercel build log:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
hi, did you resolved the admin path support at vercel? TIA |
Beta Was this translation helpful? Give feedback.
-
I know that some people have Payload running on Vercel, but until we have v3 this isn't officially supported. You can try the alpha release of v3 right now. Here is the repo: https://github.com/payloadcms/payload-3.0-alpha-demo We're working towards a beta release of 3 which should be pretty stable. |
Beta Was this translation helpful? Give feedback.
-
I just deployed the latest beta version of Payload to Vercel and I also have the 404 error problem when trying to access /admin. |
Beta Was this translation helpful? Give feedback.
@rjdjohnston I was able to get it deployed using next-payload but it seems like that repo has been archived and the link it points to no longer exists.
I can only assume the suggestion is to now use the beta version of Payload 3.0 — I read somewhere that now it's out of alpha it should be stable enough to use, but I can't remember where I read this.