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.

can't find the configuration file located at /workspace/src/payload.config.ts

default discord avatar
muperdev2 years ago
14

Hi everybody, this is the second time I'm facing this issue and it be very good if you guys can fix it because it's not relative to what I'm seeing on the code

  • default discord avatar
    exo37182 years ago

    where is your config file located and from where are you starting payload?

  • default discord avatar
    muperdev2 years ago

    actually it's located in src, this is one of my push request that faced this, and last time I faced this issue they said it's weird and we reset the cloud and it fixed

  • default discord avatar
    paulpopus2 years ago

    Looks like this is digitalocean?



    I'm migrating away from that platform, awful everything tbh...including one of the worst performing CDNs



    do you still get this issue if you trigger a rebuild without cache?

  • default discord avatar
    muperdev2 years ago

    no it's payload cloud



    I never use digital ocean, you can use heroku for your backend integration, and vercel for frontend



    I'll try to rebuild



    it's failed again after redeploy

  • default discord avatar
    exo37182 years ago

    Can you Show us your directory tree?

  • default discord avatar
    muperdev2 years ago

    it was my fault, because I didn't update some route in config file, it shows that error, after I fixed it, it works well



    thank you

  • default discord avatar
    exo37182 years ago

    Great to hear 🙂 no problem, I didn't do anything 😅

  • default discord avatar
    _thaotruonglast year
    @599971721490989117

    could you please show me how you fixed it, as i've got the similar error while i tried to deploy the payload cms on Northflank

  • default discord avatar
    muperdevlast year

    I did'nt do anything but deleting the project

  • default discord avatar
    notchrlast year
    @546799426895872000

    @599971721490989117

    This seems like a misconfigured .env variable?

  • default discord avatar
    muperdevlast year
    @1049775120559898725

    @546799426895872000

    now that I'm thinking for this one I fixed server url in the config file then it fixed

  • default discord avatar
    notchrlast year
    @599971721490989117

    Nice!



    Yeah a lot of times it's just a misconfigured .env variable



    or directly, the serverUrl being incorrect



    happens to the best of us

  • default discord avatar
    muperdevlast year

    yeah, very normal, think that's why we not seeing it 😉



    @1049775120559898725
  • default discord avatar
    notchrlast year

    ah you found it?

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.