From what I've read, payloadcms 3.0 can be deployed with nextjs directly on one server and should work out of the box. However, on my deployed nextjs app on netlify, the api functions to payloadcms do not work and give me errors or cause an Application Error. Are there extra steps I need to take to make payloadcms calls work ?
(I've attached images of the errors)
for error users/me you probably havent configured properly the url for cms
I'm using the built in api path
I can't even access the /admin payloadcms page
it gives me a 404 error
ye, this is why GET me fails, payload is not found on that urk
more info needed i think
hmm thats weird, it works normally on the local server,
is there some configuration I need to setup for the production server ?
i havent hosted on netlify but i guess its straightfull
add server url in payload config
shouldn be a lot more
is there some server logs?
One minute lemme try this first
i dont think this will help, check server logs better
because u maybe not connected to DB or something other
Ok, the issue was that the payload server url wasn't setup properly to work in production, this was the solution
The issue is solved now,
Thanks
@283289115745845249Glad that helped
Star
Discord
online
Get dedicated engineering support directly from the Payload team.