<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roshan Ravaliya</title>
    <description>The latest articles on DEV Community by Roshan Ravaliya (@roshan_ravaliya_c84c08f79).</description>
    <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3746726%2F332e3a2b-bcdb-493f-823e-770c56e63aa0.png</url>
      <title>DEV Community: Roshan Ravaliya</title>
      <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roshan_ravaliya_c84c08f79"/>
    <language>en</language>
    <item>
      <title>Building High-Performance Product Catalogs in SitecoreAI (XM Cloud) Without Creating Millions of Items</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Tue, 30 Jun 2026 18:53:00 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/building-high-performance-product-catalogs-in-sitecoreai-xm-cloud-without-creating-millions-of-4pee</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/building-high-performance-product-catalogs-in-sitecoreai-xm-cloud-without-creating-millions-of-4pee</guid>
      <description>&lt;p&gt;Model a real commerce catalog as Sitecore items and you already know how it ends: 50,000 SKUs become 50,000 items, each with variants, each needing to publish, each one stretching your build, your publish queue, and limits Experience Edge was never built to carry. The instinct is understandable Sitecore is where content lives. But a product catalog is not content, and treating it like content is the most expensive mistake teams make on SitecoreAI.&lt;/p&gt;

&lt;p&gt;The fix is a hybrid architecture: product data stays in a system built for it, Sitecore owns presentation and marketing, and a dedicated search service powers discovery. This post lays out that pattern — then answers the question that decides your search engine: which is fastest, and which reflects changes immediately after a sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a catalog can't live as Sitecore items
&lt;/h2&gt;

&lt;p&gt;SitecoreAI serves content through Experience Edge which is a globally cached, read-only GraphQL layer that's excellent at its job but has hard limits a large catalog hits immediately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A single query returns at most 1,000 entities, beyond that you paginate with cursors.&lt;/li&gt;
&lt;li&gt;Every query is scored against a complexity budget of 250, spent on the number of items and the fields and nesting. "Fetch all products in one call" is off the table.&lt;/li&gt;
&lt;li&gt;The delivery API enforces roughly 80 uncached requests per second. On a catalog site firing several queries per page, that ceiling is easy to breach under load or right after a publish clears the cache — and visitors start seeing 429s.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Publishing compounds it. A single item publishes to Edge in tens of seconds, not the few a web database takes, multiply by a large catalog and a few busy authors and the queue becomes a bottleneck. Builds balloon too, since pre-generating a page per product means generating tens of thousands of pages from Edge.&lt;/p&gt;

&lt;p&gt;The deeper issue: Edge's GraphQL search filters content by field value it isn't full-text or faceted site search, and Sitecore's own docs point you to a dedicated service for anything more. The embedded Solr inside the platform powers only the authoring UI, not your front end. So even if you forced the catalog into items, you still wouldn't have real search.&lt;/p&gt;

&lt;p&gt;The catalog doesn't belong in Sitecore, and search doesn't come from Sitecore. Both need a different home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate the catalog from the content
&lt;/h2&gt;

&lt;p&gt;Stop asking "how do I get products into Sitecore" and ask "what is Sitecore actually responsible for here?"&lt;/p&gt;

&lt;p&gt;Product data like SKUs, prices, inventory, specs, variants… has a natural home. your commerce platform, PIM, or ERP behind an API. That system already owns and updates it. Sitecore owns the experience around the product like the page template, layout, merchandising blocks, editorial copy, campaign banners, SEO fields. That's content, and it's a small, manageable set of items.&lt;/p&gt;

&lt;p&gt;So you model the shape of a product page once, and fetch the data for any product at request or build time. The catalog can hold ten million SKUs while your item tree barely grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hybrid architecture
&lt;/h2&gt;

&lt;p&gt;Three layers do the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source of truth:&lt;/strong&gt; your commerce/PIM/ERP API, plus a Redis cache for hot data. It owns the data, catalog size never touches Sitecore's item count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Search and discovery&lt;/strong&gt; a dedicated service (Coveo, Sitecore Search, or Algolia) that ingests the catalog and powers listings, facets, type-ahead, and keyword search. This is what users query, and it exists because Edge can't do this job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Presentation&lt;/strong&gt; SitecoreAI plus your headless frontend, where you model one product-detail template and a few merchandising components, and let a single dynamic route serve every product.&lt;/p&gt;

&lt;p&gt;That route is the keystone. Instead of an item per product, a wildcard "Product Detail" route reuses one layout for every product URL. Every product page resolves to the same layout item, so requests share one cached Edge response that doesn't count against the rate limit. The route reads the SKU from the URL, fetches that product's data from the API or index, and renders unlimited product URLs, full design control, almost no Edge load.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight graphql"&gt;&lt;code&gt;&lt;span class="c"&gt;# One cached layout query for the shared Product Detail route&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="k"&gt;query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ProductDetailLayout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;!,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$routePath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;!,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$language&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;!)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="n"&gt;layout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$site&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;routePath&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$routePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;language&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$language&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="n"&gt;rendered&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// getStaticProps / getServerSideProps for /products/[sku]&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getProduct&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// 1. Sitecore (Edge) gives you the page chrome — cached, cheap, rate-limit-friendly&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;layout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;edgeClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getLayoutData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/products/_wildcard&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="c1"&gt;// 2. Your commerce/PIM API gives you the live product data — the source of truth&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;PRODUCT_API&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/products/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sku&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;

  &lt;span class="c1"&gt;// 3. Your search service backs listing/category pages and search itself&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;props&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;layout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;product&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For listings and category pages you don't hit the product API per item. you query the search index, which returns paginated, faceted results in milliseconds. The detail route handles the deep single-item view. Nothing here grows with catalog size except records in a search index, which is exactly what indexes are for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coveo vs. Sitecore Search vs. Algolia
&lt;/h2&gt;

&lt;p&gt;All three work on SitecoreAI, none is the embedded Solr. They differ in how they ingest data, how fast they answer, and how quickly changes appear after a sync. First, one distinction that most "which is faster" debates blur:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Query latency keystroke to results on screen. "How fast is search" for the user.&lt;/li&gt;
&lt;li&gt;Index-freshness latency content change to "queryable in the index." "How fast it reflects after a sync."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A service can be great at one and mediocre at the other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How each ingests data.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coveo&lt;/strong&gt; the old Coveo for Sitecore package isn't supported on SitecoreAI, you can use generic connectors instead: a Sitemap or Web source that crawls on a schedule, or a Push / REST API source you feed with custom code for near-real-time updates or non-crawlable data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sitecore Search&lt;/strong&gt; crawlers (web, advanced web, API) pull on a schedule and rebuild a source as a unit, with no single-page update, the Ingestion API pushes targeted updates, usually wired to publish webhooks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Algolia&lt;/strong&gt; no first-party connector, so you build it, which gives you the most control: either the Algolia Crawler, or better for catalogs. a serverless function triggered by a publish webhook or, ideally, by changes in your commerce/PIM/Redis layer, writing records straight to Algolia.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Algolia&lt;/th&gt;
&lt;th&gt;Coveo&lt;/th&gt;
&lt;th&gt;Sitecore Search&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Query latency (user-facing speed)&lt;/td&gt;
&lt;td&gt;Fastest by design — ~1–20 ms per query, built for instant search-as-you-type.&lt;/td&gt;
&lt;td&gt;Fast, enterprise-grade; tuned for relevance and ML over headline speed.&lt;/td&gt;
&lt;td&gt;Fast, REST/SDK-based with AI relevance. Ample, not a raw-speed leader.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Freshness via push/API&lt;/td&gt;
&lt;td&gt;Near-instant, async, but typically seconds; waitTask confirms.&lt;/td&gt;
&lt;td&gt;Near-real-time via Push API, custom code required.&lt;/td&gt;
&lt;td&gt;Ingestion has no SLA, often ~20 min; can feel fast but isn't guaranteed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Freshness via crawler&lt;/td&gt;
&lt;td&gt;Scheduled (minutes to hours).&lt;/td&gt;
&lt;td&gt;Scheduled, Sitemap source supports efficient refresh.&lt;/td&gt;
&lt;td&gt;Scheduled, rebuilds the whole source, no single-page update.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integration effort&lt;/td&gt;
&lt;td&gt;Highest fully custom.&lt;/td&gt;
&lt;td&gt;Medium connectors; Push needs code.&lt;/td&gt;
&lt;td&gt;Lowest native Sitecore product.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Beyond speed&lt;/td&gt;
&lt;td&gt;Speed, simplicity, great DX; lighter on personalization.&lt;/td&gt;
&lt;td&gt;Strongest relevance, recommendations, personalization at scale.&lt;/td&gt;
&lt;td&gt;Tight Sitecore fit, OOTB AI embeddings.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Fastest queries:&lt;/strong&gt; Algolia, by design single-to-low-double-digit millisecond processing, built for instant search-as-you-type. Coveo and Sitecore Search are both fast enough for almost any requirement but aren't built around that obsession.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most immediate after a sync:&lt;/strong&gt; Algolia again. Its engine turns a write into a queryable record in seconds, and waitTask confirms it. Coveo's Push API is also near-real-time. Sitecore Search is where expectations and reality diverge: teams report webhook-to-ingestion updates "within seconds," and in good conditions they happen but Sitecore documents ingestion as asynchronous, with no SLA, often around 20 minutes, and a full republish can flood it. If "publish and it's instantly searchable, guaranteed" is the requirement, its crawler is scheduled and its ingestion is best-effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: 50K SKUs, search-driven listings, 5-minute price updates
&lt;/h2&gt;

&lt;p&gt;Here's the concrete case the architecture has to handle:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A 50,000+ SKU catalog. Listing pages come from search, with sort and filter. Product data syncs from an ERP and a Redis cache over an API. And a hard rule is when a discount campaign goes live at 12:00 and someone updates price in the ERP/Redis, the new prices must appear on the frontend within 5 minutes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This scenario pulls in two directions at once, and that tension is the whole test. Because you sort and filter by price, price has to live inside the search index and sorting and faceting happen in the engine, not at render time, so a stale index means wrong ordering. But price is also your most volatile field, and it has to be fresh within five minutes.&lt;/p&gt;

&lt;p&gt;That combination rules one engine out. Sitecore Search's ingestion is asynchronous with no SLA and often takes around 20 minutes it can't promise a 5-minute price update, and its crawler rebuilds the entire source, which is impractical to run every few minutes across 50K records.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Algolia is the right choice here. Coveo's Push API is a viable second.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The architecture:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;ERP/Redis stays the source of truth for price.&lt;/strong&gt; Nothing about price is authored in Sitecore.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The search index stores each product with its price&lt;/strong&gt;, so listings can sort and filter on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On a price change, push a partial update to Algolia just the price attribute in a batch.&lt;/strong&gt; Algolia indexes it in seconds, so listings reflect new prices well inside the 5-minute window. Real-time pricing is a use case Algolia is built for, and partial, batched updates are exactly the recommended pattern.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The product-detail page reads the live price from Redis at render.&lt;/strong&gt; Redis is sub-millisecond, so the detail view is always exact even in the seconds between a change and the index catching up.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the 12:00 campaign, the trigger fits your stack: the ERP fires an event, or your "update price" action calls a sync endpoint → a serverless function → a batched Algolia partial update. If you'd rather not wire events, a job polling Redis for changed prices every minute or two still clears the 5-minute bar comfortably. Either way, listings update through the index in seconds-to-a-minute, and the detail page reads live from Redis regardless. (Sitecore's own guidance on integrating Sitecore Search with XM Cloud flags the same webhook-pipeline considerations if you go that route.)&lt;/p&gt;

&lt;p&gt;The split is the point: the index handles discovery and price-based sorting; Redis serves the exact, live number. Sort and filter stay correct, the displayed price is never wrong, and you hit the 5-minute SLA without forcing the search engine to act as a real-time database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing between them
&lt;/h2&gt;

&lt;p&gt;Match the tool to the job, not to a benchmark:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Algolia&lt;/strong&gt; — when speed, simple real-time updates (price, stock), and developer experience matter most, and catalog data is best pushed straight from a PIM/ERP/Redis. You build and own the Sitecore integration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coveo&lt;/strong&gt; — when relevance, ML ranking, recommendations, and enterprise-scale personalization drive conversion. Its Push API covers near-real-time needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sitecore Search&lt;/strong&gt; — when staying inside the Sitecore ecosystem matters most: one vendor, native fit, AI relevance out of the box — provided you don't need guaranteed sub-5-minute freshness.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You don't scale a catalog in Sitecore by making more items, you scale it by keeping the catalog out of Sitecore. Let the ERP/PIM own product data, a dedicated search service own discovery, and SitecoreAI own the experience through one reusable product-detail route. The search choice then comes down to what you optimize for: Algolia for the fastest queries and the most immediate, predictable freshness after a sync; Coveo for the deepest relevance; Sitecore Search for the tightest native fit. For a 50K-SKU catalog with search-driven listings and a 5-minute price SLA, the answer is clear Algolia for the index, Redis for the live price.&lt;/p&gt;

&lt;h2&gt;
  
  
  References (official documentation)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sitecore — Experience Edge&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://doc.sitecore.com/sai/en/developers/sitecoreai/limitations-and-restrictions-of-experience-edge.html" rel="noopener noreferrer"&gt;Limitations and restrictions of Experience Edge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://doc.sitecore.com/xp/en/developers/101/developer-tools/the-experience-edge-schema.html" rel="noopener noreferrer"&gt;The Experience Edge schema (search, complexity, pagination)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.sitecore.com/learn/accelerate/sitecoreai/pre-development/project-architecture/rate-limits-and-caching" rel="noopener noreferrer"&gt;Experience Edge rate limits and caching&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Sitecore Search&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://doc.sitecore.com/search/en/users/search-user-guide/configure-indexing.html" rel="noopener noreferrer"&gt;Configure indexing (sources and crawlers)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://doc.sitecore.com/search/en/developers/search-developer-guide/using-the-ingestion-api-to-add-content-to-an-index.html" rel="noopener noreferrer"&gt;Using the Ingestion API to add content to an index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://doc.sitecore.com/search/en/users/search-user-guide/keep-indexes-up-to-date.html" rel="noopener noreferrer"&gt;Keep indexes up to date (ingestion timing and SLA)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.sitecore.com/learn/accelerate/xm-cloud/implementation/sitecore-search/integrating-sitecore-search" rel="noopener noreferrer"&gt;Integrating Sitecore Search with XM Cloud&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Coveo&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.coveo.com/en/p7eg0450/" rel="noopener noreferrer"&gt;Sitecore XM Cloud migration guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.coveo.com/en/2216/" rel="noopener noreferrer"&gt;Index Sitecore XM Cloud content&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Algolia&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://support.algolia.com/hc/en-us/articles/4406975267089-How-fast-is-Algolia" rel="noopener noreferrer"&gt;How fast is Algolia? (query latency)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.algolia.com/hc/en-us/articles/4406981917969-How-fast-is-the-indexing-" rel="noopener noreferrer"&gt;How fast is the indexing?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.algolia.com/blog/engineering/how-to-optimize-an-already-fast-indexing-process-advanced-use-cases" rel="noopener noreferrer"&gt;Optimizing indexing for real-time use cases, including pricing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>sitecore</category>
      <category>headless</category>
      <category>search</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Automating Bulk Content Authoring in SitecoreAI with PowerShell Extensions</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Sun, 31 May 2026 14:07:32 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/automating-bulk-content-authoring-in-sitecoreai-with-powershell-extensions-3g9f</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/automating-bulk-content-authoring-in-sitecoreai-with-powershell-extensions-3g9f</guid>
      <description>&lt;p&gt;Modern CMS platforms excel at managing content, but large-scale content updates remain one of the biggest operational challenges for content teams.   While SitecoreAI provides powerful component-based architectures, authors are often responsible for manually creating datasources, configuring components, and assigning presentation details across hundreds of pages.   At enterprise scale, this process quickly becomes a bottleneck.  &lt;/p&gt;

&lt;p&gt;Reducing 140+ hours of manual CMS work to under 30 minutes using SPE automated data source scaffolding, intelligent link resolution, and audit reporting from a single Ribbon button.  &lt;/p&gt;

&lt;h2&gt;
  
  
  The Business Challenge
&lt;/h2&gt;

&lt;p&gt;Enterprise SitecoreAI implementations constantly face one tension: developers build robust, reusable components, but content authors still bear the burden of wiring them up manually, one page at a time.  &lt;/p&gt;

&lt;p&gt;A seasonal campaign might require component updates across hundreds of category pages, multiple product series pages, several regional websites, and multiple language versions.   For each page, the content author must complete a predictable sequence of manual steps:  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Time per Page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Create data folder&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create datasource item&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create child items (slides, etc.)&lt;/td&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configure CTA links&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assign datasource to rendering&lt;/td&gt;
&lt;td&gt;2 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validate content&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total per page&lt;/td&gt;
&lt;td&gt;~17 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At 500 pages, that is 8,500 minutes, roughly 142 hours of uninterrupted, error-prone, repetitive work.  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;142h&lt;/td&gt;
&lt;td&gt;Manual effort (before)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;30m&lt;/td&gt;
&lt;td&gt;Automated runtime (after)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;Pages updated per run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;THE GOAL&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Enable content authors to update hundreds of components through a single automated process while maintaining governance, consistency, and full auditability.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why SitecoreAI PowerShell Extensions?
&lt;/h2&gt;

&lt;p&gt;There are several ways to approach content automation in SitecoreAI: custom admin applications, scheduled jobs, external integration services, and tools built on the SitecoreAI API.   For this scenario, SPE offered a decisive combination of advantages.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Native SitecoreAI Integration
&lt;/h3&gt;

&lt;p&gt;SPE provides direct, first-class access to content items, templates, the Media Library, presentation details, layout renderings, languages, and workflows with no additional abstraction layers.  &lt;/p&gt;

&lt;h3&gt;
  
  
  No Deployment Pipeline Required
&lt;/h3&gt;

&lt;p&gt;Scripts live inside SitecoreAI itself and can be updated directly in the Script Library.   Changes are immediate and require no build, package, or deployment cycle.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Author-Friendly Exposure
&lt;/h3&gt;

&lt;p&gt;SPE scripts can be surfaced as Content Editor Ribbon buttons, meaning content authors trigger complex automation without accessing any external tool or developer console.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Built-In Reporting
&lt;/h3&gt;

&lt;p&gt;SPE's Show-ListView provides an immediate audit report with zero custom UI development invaluable for operations teams that need visibility without building a dashboard.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Solution Architecture
&lt;/h2&gt;

&lt;p&gt;The end-to-end workflow follows a linear pipeline from a CSV file stored in the Media Library through to fully configured, presentation-injected pages:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CSV stored in the SitecoreAI Media Library
&lt;/li&gt;
&lt;li&gt;Ribbon command triggers the SPE script
&lt;/li&gt;
&lt;li&gt;Language selection dialog
&lt;/li&gt;
&lt;li&gt;CSV read and parsed with UTF-8 encoding
&lt;/li&gt;
&lt;li&gt;Target page located by stable business identifier
&lt;/li&gt;
&lt;li&gt;Data folder created if missing
&lt;/li&gt;
&lt;li&gt;Datasource item created if missing
&lt;/li&gt;
&lt;li&gt;Child items generated (slides, etc.)
&lt;/li&gt;
&lt;li&gt;CTA links resolved, internal path, GUID, or external URL
&lt;/li&gt;
&lt;li&gt;Datasource injected into the rendering via Presentation Details
&lt;/li&gt;
&lt;li&gt;Audit report displayed via Show-ListView
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This pipeline allows content teams to execute large-scale updates without any developer involvement after initial setup.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Step-by-Step Walkthrough
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1 Ribbon Entry Point with Language Selection
&lt;/h3&gt;

&lt;p&gt;The script is registered in the SPE Script Library.   When an author clicks the Ribbon button, a dialog collects the target language before any processing begins.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$languageOptions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ordered&lt;/span&gt;&lt;span class="p"&gt;]@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Norwegian (nb-NO)"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"nb-NO"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"English (en)"&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Read-Variable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Title&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Import Content"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Description&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Select the target language for this import."&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nx"&gt;Parameters&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@(&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;@{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"targetLanguage"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Title&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Target Language"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Options&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$languageOptions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-ne&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;Exit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;WHY THIS MATTERS&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
This guard step prevents accidental imports into the wrong language version a common and painful mistake in multilingual implementations.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 2 CSV Stored in the Media Library
&lt;/h3&gt;

&lt;p&gt;Storing the import file in the Media Library rather than a local file path is a deliberate architectural choice.   Local paths break in cloud environments and create governance issues.   A Media Library item is XM Cloud-compatible, centrally managed, and replaceable without developer access.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$mediaItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"master:&lt;/span&gt;&lt;span class="nv"&gt;$csvFilePath&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ErrorAction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Stop&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$mediaItem&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Fields&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Blob"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetBlobStream&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Length&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Out-Null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$stream&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$csvData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;System.Text.Encoding&lt;/span&gt;&lt;span class="p"&gt;]::&lt;/span&gt;&lt;span class="n"&gt;UTF8.GetString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="n"&gt;ConvertFrom-Csv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Delimiter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3 Locating Target Pages by Business ID
&lt;/h3&gt;

&lt;p&gt;Pages are matched by a stable business identifier field rather than by content path.   Paths change when items are renamed or moved; business identifiers remain stable across reorganisations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$categoryRoot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Recurse&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"WebCategoryId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$row&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WebCategoryId&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4 Automatic Datasource Scaffolding
&lt;/h3&gt;

&lt;p&gt;If a page does not already have the required datasource structure, the script creates it automatically.   This idempotent check-and-create pattern makes the solution safe to run repeatedly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create Data folder if missing&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Data"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;                           &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Data"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ItemType&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolderTemplateId&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="c"&gt;# Create datasource item if missing&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$dataFolder&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;                     &lt;/span&gt;&lt;span class="nt"&gt;-Name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ItemType&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$componentTemplateId&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5 Intelligent CTA Link Resolution
&lt;/h3&gt;

&lt;p&gt;Content authors provide links in whatever format they have SitecoreAI content paths, GUIDs, or external URLs.   The script detects the format and writes the correct SitecoreAI link XML automatically.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-like&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/sitecore/content/*"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-or&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"^\{?[A-Fa-f0-9\-]{36}\}?$"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;

    &lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"master:&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ErrorAction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;SilentlyContinue&lt;/span&gt;&lt;span class="w"&gt;

    &lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nv"&gt;$itemLang&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CTA"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;link text=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$text&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; linktype=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt;internal&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; id=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nv"&gt;$targetLinkItem&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ID&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; /&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$itemLang&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CTA"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;link text=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$text&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; linktype=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt;external&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; url=&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="nv"&gt;$urlValue&lt;/span&gt;&lt;span class="se"&gt;`"&lt;/span&gt;&lt;span class="s2"&gt; /&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6 Idempotent Item Creation
&lt;/h3&gt;

&lt;p&gt;The script checks for an existing item by its ExternalId field before creating a new one. Re-running the import updates existing content rather than duplicating it critical for production systems.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-ChildItem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Paths&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullPath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;Where-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ExternalId"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$row&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItemId&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$existingItem&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="c"&gt;# update in-place&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;New-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="c"&gt;# create new&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 7 Automated Datasource Injection
&lt;/h3&gt;

&lt;p&gt;Creating the datasource item is only half the job.   The rendering must also reference it.   Without this step, the page would have a correctly structured datasource that the component never reads.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-LayoutDevice&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Default&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$renderings&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Get-Rendering&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Device&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="kr"&gt;foreach&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$renderings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItemID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-eq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$componentRenderingId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Datasource&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$datasource&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="n"&gt;Set-Rendering&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Instance&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Device&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$device&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;WHAT THIS REPLACES&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Without automation, assigning a datasource requires opening Experience Editor, selecting the component, opening rendering properties, browsing to the datasource, and saving five manual steps per page, at 500 pages.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 8 Audit Report
&lt;/h3&gt;

&lt;p&gt;Every action is captured in a structured collection and displayed at the end of execution.   Authors see successful imports, failures, skipped records, and validation warnings without digging through logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$reportData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;PSCustomObject&lt;/span&gt;&lt;span class="p"&gt;]@{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Page Name"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Name&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Page ID"&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ID&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Type"&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Content Component"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Status"&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Success"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Log"&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Datasource assigned"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="nv"&gt;$reportData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Show-ListView&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Title&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;"Content Import Audit Report"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-PageSize&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;100&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;-Property&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Page Name"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Page ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Type"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Status"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Log"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Production Hardening
&lt;/h2&gt;

&lt;p&gt;Enterprise automation should anticipate edge cases, not just the happy path.   The script includes explicit guards for the most common failure scenarios at scale:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing pages: log a clear error with the business ID and continue processing remaining rows.   Never abort the full import for one bad row.
&lt;/li&gt;
&lt;li&gt;Missing templates: throw early with a descriptive message if a template ID is not configured.
&lt;/li&gt;
&lt;li&gt;Missing language versions: automatically create using Add-ItemVersion before populating fields.
&lt;/li&gt;
&lt;li&gt;Missing images: log a warning and continue.   The import should not fail because a single media path is incorrect.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deploying the Script in SitecoreAI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Go to SitecoreAI content editor
&lt;/li&gt;
&lt;li&gt;Go to System &amp;gt; Modules &amp;gt; Powershell &amp;gt; script library
&lt;/li&gt;
&lt;li&gt;Create new PowerShell Script Module Folder
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5etyzlodpftczjtsgxl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5etyzlodpftczjtsgxl.png" alt=" " width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Under the new folder create new module using Module Wizard
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeim8lthulfhcikepi2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkeim8lthulfhcikepi2c.png" alt=" " width="610" height="830"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create PowerShell Script Library under /sitecore/system/Modules/PowerShell/Script Library/Content/Content Tools/Content Editor/Ribbon/Home
&lt;/li&gt;
&lt;li&gt;Create PowerShell Script under newly created PowerShell Script Library
&lt;/li&gt;
&lt;li&gt;Paste your PS Script in Script body field
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcnuqlyysalm6c0i3fcn4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcnuqlyysalm6c0i3fcn4.png" alt=" " width="799" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rebuild the module
&lt;/li&gt;
&lt;li&gt;After rebuild it is reflected in Home section in top bar like Import Hero Banners.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results and Business Impact
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time per page&lt;/td&gt;
&lt;td&gt;~17 minutes&lt;/td&gt;
&lt;td&gt;Automated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500-page campaign&lt;/td&gt;
&lt;td&gt;~142 hours&lt;/td&gt;
&lt;td&gt;Under 30 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Re-run safety&lt;/td&gt;
&lt;td&gt;Manual debug&lt;/td&gt;
&lt;td&gt;Idempotent by design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audit trail&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Full Show-ListView report&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The most important result is not the time saved it is the operational model it enables.   Content teams can now execute large-scale campaign launches without developer involvement, without risking inconsistency, and without a support ticket for every missed datasource assignment.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY TAKEAWAY&lt;/strong&gt;&lt;br&gt;
The true value of automation in this context is not reducing clicks. It is enabling content teams to operate at enterprise scale without proportionally increasing operational complexity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For SitecoreAI teams working in headless and XM Cloud environments, patterns like this are a baseline capability for managing content efficiently across large digital estates. What once required close to four weeks of focused manual effort can now be triggered with a single Ribbon button click.&lt;/p&gt;

</description>
      <category>sitecoreai</category>
      <category>automation</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>SitecoreAI Deployments: The Shift from Legacy to Decoupled Architecture</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Mon, 30 Mar 2026 12:34:30 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</guid>
      <description>&lt;p&gt;When enterprise teams migrate to SitecoreAI (XM Cloud), they celebrate the shift to a headless, composable, and AI-driven architecture. However, a common technical trap awaits them during the DevOps setup: &lt;/p&gt;

&lt;p&gt;“&lt;em&gt;&lt;strong&gt;how you deploy your frontend matters just as much as how you build it&lt;/strong&gt;&lt;/em&gt;.” &lt;/p&gt;

&lt;p&gt;This decision directly impacts: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Release velocity
&lt;/li&gt;
&lt;li&gt;Developer experience
&lt;/li&gt;
&lt;li&gt;Deployment speed
&lt;/li&gt;
&lt;li&gt;Production risk &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the SitecoreAI ecosystem, there are two primary ways to deploy your Next.js application: the Integrated (Coupled) approach via the Sitecore Deploy App, and the true Decoupled approach using independent CI/CD pipelines. &lt;/p&gt;

&lt;p&gt;Decoupling in SitecoreAI isn’t just an architectural choice it’s the difference between treating your frontend as a deployable product versus a dependency of your CMS &lt;/p&gt;

&lt;p&gt;Let’s break down the architectures, execution behaviours, and why enterprise teams are standardizing on the decoupled model. &lt;/p&gt;

&lt;p&gt;In this guide, we’ll break down: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Coupled vs Decoupled deployment in SitecoreAI &lt;/li&gt;
&lt;li&gt;Real-world system behaviour
&lt;/li&gt;
&lt;li&gt;Architecture patterns
&lt;/li&gt;
&lt;li&gt;Pros, cons, and when to choose each &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is Coupled vs Decoupled Deployment in SitecoreAI
&lt;/h2&gt;

&lt;p&gt;In Sitecore AI, there are two primary deployment models: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) Coupled (Integrated) Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managed via SitecoreAI Deploy App
&lt;/li&gt;
&lt;li&gt;Backend (CM) + Frontend (Next.js) deployed together
&lt;/li&gt;
&lt;li&gt;Single pipeline
&lt;/li&gt;
&lt;li&gt;One pipeline control everything
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment
&lt;/li&gt;
&lt;li&gt;Deployments act as a monolith.
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment must trigger a deployment through Sitecore. &lt;/li&gt;
&lt;li&gt;Typical Flow:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git → Deploy App → CM + Edge + Frontend → Live 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 15–30 minutes &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) Decoupled Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend and frontend deployed independently
&lt;/li&gt;
&lt;li&gt;Separate CI/CD pipelines
&lt;/li&gt;
&lt;li&gt;Frontend hosted on: 

&lt;ul&gt;
&lt;li&gt;Vercel
&lt;/li&gt;
&lt;li&gt;Netlify
&lt;/li&gt;
&lt;li&gt;BYOF (Bring Your Own Frontend) &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Flow
&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Backend: Git → Deploy App → CM + Edge
- Frontend: Git → Vercel → Live
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 

&lt;ul&gt;
&lt;li&gt;Small apps: 2–5 minutes
&lt;/li&gt;
&lt;li&gt;Enterprise apps: 5–10 minutes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  The Architecture: Coupled vs. Decoupled
&lt;/h3&gt;

&lt;p&gt;To understand the difference, we must trace how code moves from your repository to the delivery edge. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) The Coupled (Integrated) Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this legacy model, the Sitecore Deploy App acts as the monolithic orchestrator for your entire stack. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your GitHub/Azure DevOps repository is connected directly to the SitecoreAI Deploy App. &lt;/li&gt;
&lt;li&gt;When a deployment is triggered, SitecoreAI builds BE and FE, pushes schema changes to Experience Edge, and then pushes the Next.js frontend code to the Sitecore-managed rendering host - all in the same pipeline instance. &lt;/li&gt;
&lt;li&gt;Git → Deploy App → CM + Edge + FE → Live &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) The Decoupled Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this model, the CMS backend and the Next.js frontend are treated as completely independent microservices. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline A (The CMS)&lt;/strong&gt;: The SitecoreAI Deploy App is strictly responsible for building the CM server and pushing backend schema/configuration changes to the Authoring environment. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline B (The Frontend)&lt;/strong&gt;: The Next.js application is built and deployed via its own pipeline. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BE:&lt;/strong&gt; Git → Deploy App → CM + Edge &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FE:&lt;/strong&gt; Git → Vercel → FE &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you place both the backend and frontend in the same repository (Monorepo), the Authoring environment pipeline will completely ignore the frontend code, and the Delivery pipeline will ignore the backend code.  &lt;/p&gt;

&lt;p&gt;Alternatively, you can physically split them into two different repositories (Polyrepo). &lt;/p&gt;




&lt;h3&gt;
  
  
  The Two Flavors of Decoupled Frontend Hosting:
&lt;/h3&gt;

&lt;p&gt;When decoupling, you have two options for hosting your Next.js delivery layer: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Option A&lt;/strong&gt;: Sitecore-Managed (Inbuilt Vercel): You utilize the Vercel infrastructure provisioned and managed by Sitecore under the hood. It provides a managed Editing Host, but you still decouple the deployment triggers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: You can not use public url for this environment for the preview site, it is useful Page builder and experience editor only.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Option B&lt;/strong&gt;: Bring Your Own Frontend (BYOF - External): You connect your own enterprise Vercel or Netlify account directly to your repository. This requires manual configuration but offers ultimate DevOps control. &lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;h4&gt;
  
  
  Architectural Implementation Steps
&lt;/h4&gt;

&lt;p&gt;Moving to a decoupled setup requires re configuring your pipelines to isolate the delivery edge. Here is the architectural flow: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Establish the CMS Pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the SitecoreAI Cloud Portal, configure your Deploy App to only build the CM environment. &lt;/li&gt;
&lt;li&gt;Disable any integrated frontend rendering host configurations if moving entirely to BYOF.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Choose and Configure the Frontend Pipeline&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If using BYOF (External Vercel/Netlify): Go directly to your external hosting provider. Create a new project, point it to your repository, and specify the root directory of your Next.js application. &lt;/p&gt;

&lt;p&gt;-Note: Manually configure all variable in step 3&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If using Sitecore-Managed (Inbuilt Vercel): Ensure your editing host is configured within your xmcloud.build.json to point to the correct Next.js application path, but rely on external webhooks to trigger UI-only builds if supported by your tier. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: Sitecore configure all required variable automatically, No need to do Step 3 &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Map the Environment Variables&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Because Sitecore is no longer auto-injecting environment variables into the delivery host, you must map them manually in your frontend host. Crucial variables include: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SITECORE_API_KEY (Your Experience Edge Token) &lt;/li&gt;
&lt;li&gt;SITECORE_API_HOST (The Experience Edge GraphQL endpoint) &lt;/li&gt;
&lt;li&gt;JSS_APP_NAME (The name of your site configuration) &lt;/li&gt;
&lt;li&gt;GRAPH_QL_ENDPOINT (The endpoint for the delivery layer)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Configure CI/CD Hooks&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up GitHub Actions, Azure Pipelines, or Vercel webhooks to trigger frontend builds automatically upon merging to your main or staging branches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common Troubleshooting Scenarios&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Experience Editor breaks due to incorrect editing host setup &lt;/li&gt;
&lt;li&gt;Mismatched GraphQL schemas between FE and Edge &lt;/li&gt;
&lt;li&gt;Environment variable drift between environments &lt;/li&gt;
&lt;li&gt;Preview vs Delivery endpoint confusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pros and Cons&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coupled (Legacy) Deployment&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Simplicity: A single pane of glass for all deployments in the Sitecore Cloud Portal. &lt;/li&gt;
&lt;li&gt;Beginner Friendly: SitecoreAI handles the Edge and Editing Host environment variable mapping automatically. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Slow Feedback Loop: Frontend deployments take drastically longer because they wait on CM orchestration. &lt;/li&gt;
&lt;li&gt;Difficult Rollbacks: Rolling back a bad frontend deployment often means reverting the entire CM state. &lt;/li&gt;
&lt;li&gt;Lack of DevOps Control: You cannot easily utilize advanced CI/CD testing steps (like Playwright or Cypress) before the frontend deploys. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Decoupled Deployment &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blazing Fast Iteration: Frontend deployments finish in minutes. &lt;/li&gt;
&lt;li&gt;Independent Rollbacks: Revert a bad UI push instantly without affecting the CMS backend. &lt;/li&gt;
&lt;li&gt;Security &amp;amp; Access: Frontend developers don't need access to the Sitecore Cloud Portal to do their jobs. &lt;/li&gt;
&lt;li&gt;Reduced frontend deployment time by 80% &lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;br&gt;
      - Manual Configuration: You must manage API keys, webhooks, and environment variables manually. &lt;br&gt;
      - Two Pipelines: DevOps teams must monitor two separate deployment streams. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;th&gt; Feature &lt;/th&gt;
&lt;th&gt; Coupled (Integrated) &lt;/th&gt;
&lt;th&gt; Decoupled (Standalone) &lt;/th&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend Deploy Speed &lt;/td&gt;
&lt;td&gt;15 - 30+ Minutes &lt;/td&gt;
&lt;td&gt;2 - 5 Minutes (small Apps) 


5 – 10 minutes (Enterprise Apps) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollback Complexity &lt;/td&gt; &lt;td&gt;High (Tied to CM state) &lt;/td&gt; &lt;td&gt;Low (Instant via Vercel/Netlify) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI/CD Customization &lt;/td&gt;
&lt;td&gt;Limited &lt;/td&gt;
&lt;td&gt;Unlimited (GitHub Actions, etc.) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup Effort &lt;/td&gt;
&lt;td&gt;Low (Out of the box) &lt;/td&gt;
&lt;td&gt;Medium (Requires manual Env Vars) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best For &lt;/td&gt;
&lt;td&gt;POCs, Sandboxes, Small Teams &lt;/td&gt;
&lt;td&gt;Enterprise, Agile Teams, Production &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h4&gt;
  
  
  When is Decoupled NOT the Right Choice?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Small teams without DevOps expertise &lt;/li&gt;
&lt;li&gt;POCs or hackathons &lt;/li&gt;
&lt;li&gt;Projects with minimal frontend changes &lt;/li&gt;
&lt;li&gt;Teams heavily reliant on Experience Editor with no FE team&lt;/li&gt;
&lt;/ul&gt;




&lt;h4&gt;
  
  
  Why Enterprises Prefer Decoupled XM Cloud
&lt;/h4&gt;

&lt;p&gt;While the Coupled deployment model is excellent for a quick Proof of Concept, the Decoupled architecture is the undisputed best practice for production environments. &lt;/p&gt;

&lt;p&gt;The core promise of a headless CMS is agility. If your frontend developers are forced to wait for a monolithic backend deployment pipeline just to update a button color, you have lost the primary benefit of headless architecture like Release velocity, Team independence, Parallel development. &lt;/p&gt;

&lt;p&gt;Decoupling your deployments aligns perfectly with modern software engineering principles:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separation of Concerns: The delivery layer (Next.js) and the authoring layer (CM) have different lifecycles and should fail or succeed independently. &lt;/li&gt;
&lt;li&gt;Developer Experience (DevEx): Frontend engineers can work entirely within their native tools (Vercel, GitHub) without navigating Sitecore portals. &lt;/li&gt;
&lt;li&gt;Risk Mitigation: Isolating the delivery pipeline ensures that an error in a custom backend Sitecore pipeline won't prevent you from pushing a critical UI hotfix to your live website. &lt;/li&gt;
&lt;li&gt;Reduce Deployment time more than 70%
&lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Untangle your pipelines, secure your Edge tokens, and let your frontend run free. &lt;/p&gt;




&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;Decoupling in SitecoreAI is not just an optimization-it’s a mindset shift. &lt;/p&gt;

&lt;p&gt;You move from: &lt;/p&gt;

&lt;p&gt;-&lt;strong&gt;&lt;em&gt;“Frontend as part of CMS”&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;“Frontend as an independent product”&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And that changes everything. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation References&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To explore the technical specifications of these architectures, refer to the official Sitecore documentation: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.google.com/search?q=https://doc.sitecore.com/xmc/en/developers/xm-cloud/walkthrough--setting-up-a-headless-project-with-byof.html" rel="noopener noreferrer"&gt;Walkthrough: Setting up a headless project with BYOF (Bring Your Own Frontend) &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/the-xm-cloud-build-configuration.html" rel="noopener noreferrer"&gt;Sitecore XM Cloud Deploy App Architecture &amp;amp; Build Configurations&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>cicd</category>
      <category>devops</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Turbocharge Your Content with Sitecore AI Publishing V2</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Sat, 21 Feb 2026 14:22:20 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</guid>
      <description>&lt;p&gt;If you have worked with Sitecore AI (XM Cloud), you already know: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishing performance directly impacts delivery speed and author productivity. &lt;/li&gt;
&lt;li&gt;For a long time, Snapshot Publishing (V1) powered Sitecore AI content delivery. It worked but as projects scaled, publishing times increased, CM servers became overloaded, and queues slowed down deployments. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, Sitecore introduces a modern, cloud-native approach: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Experience Edge Runtime (Publishing V2)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s explore what changed and why it matters. &lt;/p&gt;

&lt;h3&gt;
  
  
  The Bottleneck: Publishing V1 (Snapshot-Based)
&lt;/h3&gt;

&lt;p&gt;In Publishing V1, when you publish a page, the CM server performs heavy processing before the content even reaches Experience Edge&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculated the entire layout. &lt;/li&gt;
&lt;li&gt;Resolved all data sources. &lt;/li&gt;
&lt;li&gt;Executed Layout Service pipes. &lt;/li&gt;
&lt;li&gt;Created a massive, static JSON blob (a "Snapshot") to send to Experience Edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Result:&lt;/strong&gt; Publishing a simple page update could take minutes. Even a small content change requires rebuilding the entire page structure. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;As your site grows:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Layout complexity increases &lt;/li&gt;
&lt;li&gt;Datasource relationships multiply &lt;/li&gt;
&lt;li&gt;CPU usage on CM rises &lt;/li&gt;
&lt;li&gt;Publish queues grow longer &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What once took seconds can quickly turn into minutes. &lt;/p&gt;

&lt;p&gt;And at scale, this affects both publishing speed and authoring performance. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution: Publishing V2 (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sitecore AI introduced a new way to publish content: &lt;strong&gt;Publishing V2&lt;/strong&gt; (also known as &lt;strong&gt;Edge Runtime&lt;/strong&gt; mode). It sounds technical, but it’s a beautiful simplification of how data moves. &lt;/p&gt;

&lt;p&gt;Publishing V2 changes the architecture entirely. &lt;/p&gt;

&lt;p&gt;Instead of pre-calculating the full layout JSON on the CM server, Sitecore now: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishes raw item data &lt;/li&gt;
&lt;li&gt;Publishes layout references &lt;/li&gt;
&lt;li&gt;Defers JSON assembly to the Edge runtime&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final JSON response is assembled dynamically on the Experience Edge delivery layer not on CM. &lt;/p&gt;

&lt;p&gt;This shifts the workload from the single CM instance to the massively scalable Edge CDN. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The "Cake" Analogy: V1 vs. V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To understand the difference, imagine you are sending a cake to a friend. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publishing V1 (Snapshot):&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;You bake the cake, frost it, box it up, and ship the entire heavy box. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore calculates the entire layout JSON on the CM server and sends a massive static blob to Experience Edge. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Slow and heavy.
&lt;/li&gt;
&lt;li&gt;If you change one ingredient, you must bake the whole cake again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Publishing V2 (Edge Runtime):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You just send the &lt;strong&gt;recipe&lt;/strong&gt; and the &lt;strong&gt;ingredients&lt;/strong&gt;. Your friend (Experience Edge) assembles the cake instantly when someone asks for it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore sends only the raw item data and layout references. Experience Edge assembles the JSON at "runtime" when the API is called. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Lightning fast.
&lt;/li&gt;
&lt;li&gt;You only ship the tiny changes. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Architecture Comparison&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;V1 Flow (Snapshot Publishing)&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Layout Service Processing → Full JSON Snapshot → Experience Edge → CDN → Frontend &lt;/li&gt;
&lt;li&gt;Everything is assembled on CM before delivery. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;V2 Flow (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Raw Items + Layout References → Edge Worker Runtime → JSON Assembly → CDN → Frontend &lt;/li&gt;
&lt;li&gt;JSON is assembled at request time by the Edge worker.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" alt="V1 vs V2" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Advantages of Publishing V2 &lt;/p&gt;

&lt;p&gt;1). Blazing Fast Publish Times &lt;/p&gt;

&lt;p&gt;Since layout JSON is no longer generated on CM, publish jobs typically complete in seconds rather than minutes. &lt;/p&gt;

&lt;p&gt;This is especially noticeable on: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large component-based pages &lt;/li&gt;
&lt;li&gt;Sites with heavy personalization &lt;/li&gt;
&lt;li&gt;Complex layout structures &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2️). Better CM Performance &lt;br&gt;
The CM instance is no longer CPU-bound by layout assembly. &lt;/p&gt;

&lt;p&gt;This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better authoring performance &lt;/li&gt;
&lt;li&gt;Higher concurrency &lt;/li&gt;
&lt;li&gt;Multiple publish jobs can run safely &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3️). True Scalability &lt;/p&gt;

&lt;p&gt;Processing shifts to the globally distributed Experience Edge runtime designed for high availability and horizontal scaling. &lt;/p&gt;

&lt;p&gt;Your publishing performance now scales with Edge infrastructure, not your CM size. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important Behavioral Change: Strict Dependencies&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is where V2 requires architectural awareness. &lt;/p&gt;

&lt;p&gt;In V1: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The snapshot captured fully resolved data at publish time. &lt;/li&gt;
&lt;li&gt;Previously resolved data could still exist inside snapshots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In V2: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON is assembled at request time. &lt;/li&gt;
&lt;li&gt;If a datasource item is not published, it does not exist in the GraphQL response.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;This can result in:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Empty components &lt;/li&gt;
&lt;li&gt;Missing navigation items &lt;/li&gt;
&lt;li&gt;Incomplete JSON output &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Practice:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Always use: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publish Related Items &lt;/li&gt;
&lt;li&gt;Or ensure parent and datasource items are included in the publish job.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Caching Behavior in V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;V2 invalidates cache per item ID. &lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not automatically invalidate related items&lt;/strong&gt; such as: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parent navigation &lt;/li&gt;
&lt;li&gt;Sibling teasers &lt;/li&gt;
&lt;li&gt;Shared components&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a shared data source changes, and parents are not published, you may see stale content. &lt;/p&gt;

&lt;p&gt;Always plan publish dependency carefully. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Implement (The "Switch")&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;No code changes required. No config patching. No redeployment of frontend. &lt;/p&gt;

&lt;p&gt;You can do this directly in the Sitecore AI Deploy Portal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Log in to the &lt;a href="https://deploy.sitecorecloud.io/" rel="noopener noreferrer"&gt;SitecoreAI Deploy&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Select your Project and Environment (e.g., Production, QA, or Development).  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Go to the Variables tab.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Click Create Variable and add the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name: Sitecore_ExperienceEdge_dot_WorkerStoreEnabled  &lt;/li&gt;
&lt;li&gt;Value: TRUE
&lt;/li&gt;
&lt;li&gt;Target: CM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" alt="Screenshot" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Save and deploy your environment.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Once deployment completes, Republish all sites in the environment. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Deployment + full republish is required for activation. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To revert to V1:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the variable Sitecore_ExperienceEdge_dot_WorkerStoreEnabled to FALSE. &lt;/li&gt;
&lt;li&gt;Redeploy the environment &lt;/li&gt;
&lt;li&gt;Delete Edge content
&lt;/li&gt;
&lt;li&gt;Republish all sites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Frontend Impact: The Best News&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is the "sweetest" part of the update. &lt;/p&gt;

&lt;p&gt;Do not need to change your Next.js API endpoints. &lt;/p&gt;

&lt;p&gt;Even though the backend architecture has completely changed, the Frontend Contract remains the same.&lt;/p&gt;

&lt;p&gt;✔ Your Endpoint: Remains &lt;a href="https://edge.sitecorecloud.io/api/graphql/v1" rel="noopener noreferrer"&gt;https://edge.sitecorecloud.io/api/graphql/v1&lt;/a&gt; &lt;br&gt;
✔ Your Query: Remains exactly the same. &lt;br&gt;
✔ Your JSON Response: Look exactly the same. &lt;br&gt;
✔ Require zero refactoring &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;The change from V1 to V2 is purely architectural (Backend/Ingestion). It changes how data gets into the Edge, but it does not change Delivery how read it out. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;V1: Edge reads a pre-baked JSON blob. &lt;/li&gt;
&lt;li&gt;V2: Edge reads references and assembles the JSON blob on the fly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-World Impact&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;In enterprise implementations, teams have observed: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Homepage publish time reduced from minutes to seconds &lt;/li&gt;
&lt;li&gt;Massive reduction in publish queue backlogs &lt;/li&gt;
&lt;li&gt;Improved CM responsiveness during large content pushes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For content-heavy, composable architectures, this is a game-changing improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Verdict&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Publishing V2 (Experience Edge Runtime): &lt;/p&gt;

&lt;p&gt;✔ Faster &lt;br&gt;
✔ Lighter &lt;br&gt;
✔ More scalable &lt;br&gt;
✔ No frontend changes &lt;br&gt;
✔ Cleaner architecture&lt;/p&gt;

&lt;p&gt;The only requirement? &lt;/p&gt;

&lt;p&gt;Be disciplined with publish dependencies. &lt;/p&gt;

&lt;p&gt;For most Sitecore AI headless projects, this is a clear upgrade and a rare “win-win” architectural improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ready to make the switch? Check out the official guides here: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/enable-edge-runtime-publishing.html" rel="noopener noreferrer"&gt;Sitecore: Enable Edge Runtime Publishing&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.sitecore.com/learn/accelerate/xm-cloud/pre-development/information-architecture/publishing-to-edge" rel="noopener noreferrer"&gt;Understanding Publishing Architecture&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Closing Thought&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Sitecore AI is evolving toward true cloud-native architecture and Publishing V2 is a major step forward. &lt;/p&gt;

&lt;p&gt;If you are still on Snapshot Publishing, this is the time to switch. &lt;/p&gt;

&lt;p&gt;Happy Publishing. &lt;/p&gt;

</description>
      <category>sitecoreai</category>
      <category>webdev</category>
      <category>ai</category>
      <category>developers</category>
    </item>
  </channel>
</rss>
