Expand my Community achievements bar.

SOLVED

EDGE Delivery services common repo

Avatar

Community Advisor

Hey Team,

 

We are trying to use the Edge Delivery Service GitHub template for our website to enable AEM Site Universal Editor authoring.
Our approach is as follows: we have a Site_A repository, a Site_B repository, and a common repository. We would like to create a component in the common repository and use it in both Site_A and Site_B. Is this possible? If so, how can we achieve it?

 

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Prince_Shivhare 

Its only possible with repoless setup but if you create normal repo then you can't link different sites content with same repo.

you may need to fork another site repo and linked content to site B.

 

Note : forking repo is old approach of reusing code with different sites.

Arun Patidar

AEM LinksLinkedIn

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @Prince_Shivhare 

Please check https://www.aem.live/docs/repoless 

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor

That looks like very old documentation because nowadays, everything happens automatically once you create a site in AEM.

But I have another question: I’m able to create two sites, siteA and siteB, using the same GitHub repo, and any changes in the repo reflect on both sites. So, can I have two different domains for siteA and siteB, even though both sites are created within the same AEM instance?

Avatar

Correct answer by
Community Advisor

Hi @Prince_Shivhare 

Its only possible with repoless setup but if you create normal repo then you can't link different sites content with same repo.

you may need to fork another site repo and linked content to site B.

 

Note : forking repo is old approach of reusing code with different sites.

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor

Avatar

Community Advisor

We got the solution, we are using 1 repository, creating two sites, and managing the domain change in cloudfare coworker.

Thanks