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.

Implementation of Multi-stage CMS

default discord avatar
bernstein7z2 years ago
1

We are currently building a system using Next.js and PayloadCMS for our new website. We are really happy with the use of PayloadCMS, but the only thing we haven't quite figured out yet is the multi-staging using git branches. Currently, we take a database dump before every commit using git hooks and save it in git, and after each checkout, we write it back into the database. Here in this forum, I read a lot about multi-tenancy, but I can hardly find anything about staging. I thought about restricting the editing of the CMS to only dev and main, but I would like to hear your opinion and experience on this. I look forward to your responses, and thank you in advance.

  • discord user avatar
    dribbens
    2 years ago

    Hey @berini, we're working on building migrations right now into the new database support. I believe that will alleviate your pain points around multiple environments.


    Are you familiar with the concept of database migrations?


    I'd love to get your feedback on whether this solves your use-case or not.

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.