Command Palette

Search for a command to run...

Back to skills
skill № 43196

content-sdk-multisite-management

Multisite via createMultisiteMiddleware in server.ts; site read in loaders with getSiteName.

FreeNo executable scripts
Sitecoreby Sitecore★ 39 GitHub stars

Install content-sdk-multisite-management in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Multisite management (Angular)

Detail: AGENTS-angular-specifics.md#multisite Read first: src/server.ts, .sitecore/sites.json

When

  • Multisite routing, site resolution, or sites.json changes

Rules

  • createMultisiteMiddleware resolves the site in a fixed order: sc_site query → sc_site cookie → hostname → defaultSite, and writes it to req.scParams
  • It must run before bot tracking, redirects and personalize, all of which read the resolved site
  • Loaders read the site with getSiteName(context) — never hardcode a site name
  • The site list comes from .sitecore/sites.json (generated by generateSites()); do not hardcode or hand-edit it
  • Site is part of the loader cache key — do not remove it
  • Cross-origin setups may not send the sc_site cookie; use ?sc_site= or SameSite=None; Secure

Stop

  • Stop if changing middleware order without explicit approval
  • Stop if a link or loader would hardcode a site

Docs: Content SDK for Angular.

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the content-sdk-multisite-management skill do?

Multisite via createMultisiteMiddleware in server.ts; site read in loaders with getSiteName.

How do I install the content-sdk-multisite-management skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the content-sdk-multisite-management skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare content-sdk-multisite-management with