Payload Cloud deploy error

default discord avatar
daf1991
2 months ago
5

Project ID: 64a33869b3545c4a05cdfeb9



The error occurs at deployment. It builds correctly. I'm not able to reproduce it locally. I tried running

yarn build

then

yarn serve

to replicate but it works fine locally, the error only occurs in Payload Cloud.

  • discord user avatar
    tylandavis
    Payload Team
    2 months ago

    do you have your serverURL set correctly in your config?

  • default discord avatar
    daf1991
    2 months ago

    Hey - thanks for responding!


    Where can I find the serverURL?

  • discord user avatar
    tylandavis
    Payload Team
    2 months ago

    it will be in your

    payload.config.ts

    file.

  • default discord avatar
    daf1991
    2 months ago

    oh I didn't have that on my payload.config.ts, I just entered and trying to deploy now



    Same issue - didn't help

  • discord user avatar
    tylandavis
    Payload Team
    2 months ago

    @daf1991 I'm copying over your answer from the other thread to here in case others come across the same issue:



    "Ok! I was able to fix this. I had changed the PORT of the express server and when I reverted it to 3000, it started working again 🙌"

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.