joas8211 / payload-tenancy

Multi-tenancy plugin for Payload CMS
MIT License
122 stars 6 forks source link

Payload 2.0 #24

Closed samducker closed 8 months ago

samducker commented 9 months ago

Hey I'm thinking about using this with the newly released payload 2.0 and postgres adapter is it compatible with either of those?

joas8211 commented 9 months ago

I'll soon start working on upgrading the plugin to Payload 2.0, since I'll need this to work on my project also. Postgres is also a must for my project, so it will deinitiely be supported. Just give me some time, the Payload update just dropped :smile:

samducker commented 9 months ago

Yeah no pressure at all 😃.

I just have a meeting later for a new project, and was just weighing up whether I should start with payload 2.0 or use one of the older versions.

As this plugin seems like an awesome concept for agencies hosting multiple projects for clients on one server.

So thought I'd ask, but I'm in no rush, as haven't started using multi tenancy at all yet.

I'll just start the new project as single tenant and upgrade later down the line.

Whilst I've got you here I had a quick question,

If I want to share some ui components / blocks between different tenants but not all of them.

E.g.

Client A - gets blocks 1 and 2 in their page builder.

Client B - gets 2 and 3

2 is shared between both.

Would I use globals to achieve this?

I'm currently thinking to have a master project library on npm and import to each additional repo as needed. And also have a vercel or AWS project for each frontend.

But share the db and headless cms between all projects with the tenancy plugin.

I've used payload once before but have mostly used storyblok because of the visual editor is nice for non technical users. But now they have released this I want to move over as OSS 😍

Thank you for your great work on this plugin.

joas8211 commented 9 months ago

I've been stuck with the upgrade on extending edit view in Payload 2.0. It's needed for refreshing permissions during setup process. For anyone on Payload Discord server that has knowledge for the subject, help is needed.

https://discord.com/channels/967097582721572934/1160851828624338954/1160851828624338954

mpresecan commented 9 months ago

A simple fresh install by npx create-payload-app (mongoose adapter) and fresh install of tenency plugin brakes instalation

joas8211 commented 8 months ago

Version 2.0.0 of this plugin has been now released! It supports (and requires) Payload 2.0.13.