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.

Unable to deploy any new updates to Payload Cloud after first deploy

default discord avatar
oldmanpewpewlast year
6

I successfully deployed to payload cloud by pushing some commits directly to main.



I made a branch, added a collection and merged it to main.



This seems to fail to deploy, but I'm unable to read the entire Deploy Logs on the website to determine what is wrong

  • discord user avatar
    tylandavis
    last year

    Hey there

    @120890669471498240

    , my suspicion is that this is related to CSRF. Check that your

    csrf

    settings are properly configured with your cloud domain urls in your

    payload.config.ts

    file. More on CSRF here:

    https://payloadcms.com/docs/authentication/overview#csrf-protection
  • default discord avatar
    oldmanpewpewlast year

    I don't understand how "adding a new collection" is related to CSRF?



    I created a new collection and then changed 1 line in payload.config.ts:


        collections: [Users, WizardContent]
  • discord user avatar
    tylandavis
    last year

    I'm just trying to rule out possible issues that might cause that error.

  • default discord avatar
    oldmanpewpewlast year

    my project id: 654bba80a24033b20bf32a26



    i'm pushing up a comit. I had changed app.listen(3000);


    to app.listen(4000);



    maybe it was that.



    it appears that was it.



    so for doing local development, if I don't want to use port 3000 (since Remix is on port 3000).. I have to just "not check that in"

  • discord user avatar
    tylandavis
    last year

    You could also set it as an environment variable

  • default discord avatar
    oldmanpewpewlast year

    true true

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.