I don't really know what to do. I'm honestly at a loss, dealing with this for hours
I've never used render, but this looks like it didn't run yarn build beforehand
error changes, now it says i don't have the secret key
lemme check the env variables on render
(comunque grazie, almeno l'errore e cambiato ahah)
Yup, it'd need a PAYLOAD_SECRET environment variable
(i think the payload secret can be anything)
yeah, im trying with the env inserted.
ill let you know in a moment
new error
(i have the mongo url in env variables)
ok, the site is live. Is it normal that it's just a white page?
nope, check the execution log - maybe some problem connecting to mongodb again
ah
set the environment variable PAYLOAD_PUBLIC_BASE_DNS to your domain
so backendblog.onrender.com
ill give this a try
If this doesn't work im gonna just follow the tutorial you mentioned and in case ill ask other questions
you can find it here:
https://northflank.com/guides/deploying-payload-cms#initiate-the-payload-projectmight help with your render deployment as well ^^
when i set the server url to that env variable, it gives me this error
[20:12:48] ERROR (payload): There were 1 errors validating your Payload config
Nov 22 09:12:48 PM [20:12:48] ERROR (payload): 1: Your serverURL cannot have a path. It can only contain a protocol, a domain, and an optional port.
(im sorry, i really am stupid lol)
what exactly did you set as environment variable?
it needs to be just
PAYLOAD_PUBLIC_BASE_DNS=backendblog.onrender.comin render.com
yeah, it's like that
in the config file it's process.env.PAYLOAD_PUBLIC_BASE_DNS
Ah I think the protocol is missing
try
PAYLOAD_PUBLIC_BASE_DNS=https://backendblog.onrender.comhowever...still white page..
Ah did you add www. to the environment variable? Cause it needs to be without www
...ok.
it works...
grazie veramente, scusa per la perdita di tempo
Star
Discord
online
Get dedicated engineering support directly from the Payload team.