#Can't deploy to render

40 messages · Page 1 of 1 (latest)

mighty dragon
#

I don't really know what to do. I'm honestly at a loss, dealing with this for hours

cyan kiln
mighty dragon
#

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)

cyan kiln
#

(i think the payload secret can be anything)

mighty dragon
#

yeah, im trying with the env inserted.

#

ill let you know in a moment

mighty dragon
#

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?

cyan kiln
mighty dragon
#

nope, it says connected to mongo

cyan kiln
#

ah

#

set the environment variable PAYLOAD_PUBLIC_BASE_DNS to your domain

mighty dragon
#

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

cyan kiln
mighty dragon
#

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)

cyan kiln
mighty dragon
#

In the website

#

I set the website url

cyan kiln
#

it needs to be just PAYLOAD_PUBLIC_BASE_DNS=backendblog.onrender.com

mighty dragon
#

yeah, it's like that

#

in the config file it's process.env.PAYLOAD_PUBLIC_BASE_DNS

cyan kiln
#

Ah I think the protocol is missing

#

try PAYLOAD_PUBLIC_BASE_DNS=https://backendblog.onrender.com

mighty dragon
#

however...still white page..

cyan kiln
# mighty dragon

Ah did you add www. to the environment variable? Cause it needs to be without www

mighty dragon
#

...ok.

mighty dragon
#

it works...