EDGE Delivery services common repo | Community
Skip to main content
Prince_Shivhare
Community Advisor
Community Advisor
January 27, 2025
Solved

EDGE Delivery services common repo

  • January 27, 2025
  • 3 replies
  • 754 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

3 replies

arunpatidar
Community Advisor
Community Advisor
January 27, 2025
Arun Patidar
Prince_Shivhare
Community Advisor
Community Advisor
January 28, 2025

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?

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
January 28, 2025

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
Prince_Shivhare
Community Advisor
Community Advisor
January 29, 2025

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

Thanks