Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Best Practices for setting up environments for production level EDS website

Avatar

Level 2

Hey everyone,

 

We have an EDS website which we want to deploy on our AEM Cloud CDN using Edge Delivery Solution. (Screenshot below)
I do understand the steps needed to configure and connect an EDS website to a Domain. However, this single domain instance will then be our production. I want a staging environment before in this pipeline, so it should somehow look like this:

main----.aem.live ---> www.stagingURL.com ----> www.productionURL.com 

Is that pipeline possible in this configuration for EDS? What are the recommended best practices? 

OsmanWa_1-1738180287663.png

 

OsmanWa_0-1738180240891.png


Thank you 🙂 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Adobe Champion

Great question.  I'm assuming that you already have a CDN configuration underway to be able to map your domain to your main--[yoursite].aem.live domain.  If not, I put a bunch of sample CDN configurations for such in a blog post.

But if you want a staging URL, like www-stage.mysite.com, there are two different ways you can map this.  If you're interested in having a CDN in front of the staging CONTENT, you can use the CDN configuration to map to your .page URL to a separate domain using originSelectors in your CDN YAML.  You also may want to make a staging URL that instead uses a specific branch in your code to test that staging branch through the CDN, i.e. something like this: 

originSelectors:
    rules:
      - name: staging
        when: { reqProperty: domain, like: www-staging.mysite.com } 
        action:
          type: selectOrigin
          originName: mysite-staging-url
    origins:
      - name: mysite-staging-url
        domain: stagingbranch--projectname--siteowner.aem.live
        forwardHost: false 

Hope that helps!

View solution in original post

2 Replies

Avatar

Administrator

@h_kataria@Shashi_Mulugu@kapil_rajoria@Tad_Reeves@Uppari_Ramesh@RiteshY18@Jörg_Hoh@Anil_Chennapragada@arunpatidar@CR17506599

Kindly take a moment to review this question and share your valuable insights. Your expertise would be greatly appreciated!



Kautuk Sahni

Avatar

Correct answer by
Adobe Champion

Great question.  I'm assuming that you already have a CDN configuration underway to be able to map your domain to your main--[yoursite].aem.live domain.  If not, I put a bunch of sample CDN configurations for such in a blog post.

But if you want a staging URL, like www-stage.mysite.com, there are two different ways you can map this.  If you're interested in having a CDN in front of the staging CONTENT, you can use the CDN configuration to map to your .page URL to a separate domain using originSelectors in your CDN YAML.  You also may want to make a staging URL that instead uses a specific branch in your code to test that staging branch through the CDN, i.e. something like this: 

originSelectors:
    rules:
      - name: staging
        when: { reqProperty: domain, like: www-staging.mysite.com } 
        action:
          type: selectOrigin
          originName: mysite-staging-url
    origins:
      - name: mysite-staging-url
        domain: stagingbranch--projectname--siteowner.aem.live
        forwardHost: false 

Hope that helps!