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.

Images disappear after deploy

default discord avatar
kresimirgalic10 months ago
3

Hey guys, i have an app deployed on render, and each time i deploy a new build, images are gone from media collections. Did someone had that problem?

  • discord user avatar
    dribbens
    2 years ago
    @272083690161569793

    How are you handling your file storage? The default in Payload is to save files locally to the express server running node.


    It sounds as though you are using storage on the server instance and that instance is replaced each deploy. The docs talk about it here:

    https://payloadcms.com/docs/production/deployment#file-storage

    This has to be a configuration issue. We will Dm you to find out which project is yours.

  • default discord avatar
    jellekuipersdpmlast year

    Hi

    @969226489549713438

    we are experiencing the same issue with images disappearing after each new build during the deploy stage. We are using Payload Cloud and it looks like the file storage is setup correctly, so I'm not sure where/what to check next. Would be great if you could help out - thanks in advance!



    Hi

    @967118574445547650

    , thanks for the tips! I'll dig in to it and come back with an answer.

  • discord user avatar
    denolfe
    last year
    @1100484955307511868

    Let's keep troubleshooting here as much as we can. Like Dan said, images that disappear after each deploy typically means that your cloud storage is not configured correctly. It is likely writing to the

    ephemeral

    disk that is created for each new instance of your application.



    A few questions to help troubleshoot:



    - Are you using one of the payload cloud templates? If so, which one?


    - Can you check that your project's config is calling

    payloadCloud()

    inside of your

    plugins

    array? This comes from

    https://github.com/payloadcms/plugin-cloud
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.