#Can't deploy to render
40 messages · Page 1 of 1 (latest)
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)
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
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-project might 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?
In the .env file, i set http://localhost:3000
In the website
I set the website url
it needs to be just PAYLOAD_PUBLIC_BASE_DNS=backendblog.onrender.com
in 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.com
Ah did you add www. to the environment variable? Cause it needs to be without www
...ok.
it works...