#ERROR: netlify deployment nextjs and payloadCMS

19 messages · Page 1 of 1 (latest)

muted jasper
#

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)

deft folio
#

for error users/me you probably havent configured properly the url for cms

muted jasper
#

I'm using the built in api path

#

I can't even access the /admin payloadcms page

#

it gives me a 404 error

deft folio
#

ye, this is why GET me fails, payload is not found on that urk

#

more info needed i think

muted jasper
#

hmm thats weird, it works normally on the local server,
is there some configuration I need to setup for the production server ?

deft folio
#

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?

muted jasper
deft folio
#

i dont think this will help, check server logs better

#

because u maybe not connected to DB or something other

muted jasper
#

The issue is solved now,

Thanks @deft folio

stable sailBOT