How to load overlapping routes/components from multiple Plasmic projects?

happy monday! we are planning to use one codebase in multiple projects; is there an example / recommended way for us to instantiate plasmic for one project vs. another based on the domain that a particular request is coming from?

I see that we can pass in an array of ids + tokens to initPlasmicLoader, but I’m not sure how to tell Plasmic which project to render if we have two websites with overlapping route structures, one at fake-domain-1.com/ and another at fake-domain-2.com/

PlasmicComponent does take an optional projectId prop - usually you don’t need this but if you have overlapping route structures / conflicting names, then it comes in handy!

https://docs.plasmic.app/learn/react-api/#plasmiccomponent-

PlasmicComponentLoader.fetchComponentData() also takes an optional project ID

perfect, thanks!