Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Payload Cloud deploy error

default discord avatar
daf1991.2 years 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
    2 years ago

    do you have your serverURL set correctly in your config?

  • default discord avatar
    daf1991.2 years ago

    Hey - thanks for responding!


    Where can I find the serverURL?

  • discord user avatar
    tylandavis
    2 years ago

    it will be in your

    payload.config.ts

    file.

  • default discord avatar
    daf1991.2 years 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
    2 years ago
    @756006230719332363

    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 🙌"

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.