Buckets:
| import { | |
| SiteInfo, | |
| SiteResolver, | |
| } from "@sitecore-jss/sitecore-jss-nextjs/middleware"; | |
| import * as plugins from "temp/site-resolver-plugins"; | |
| /* | |
| The site resolver stores site information and is used in the app | |
| whenever site lookup is required (e.g. by name in page props factory | |
| or by host in Next.js middleware). | |
| By default, the app is single-site (one JSS app per Sitecore site). | |
| However, multi-site is available with the `nextjs-multisite` add-on. | |
| */ | |
| export interface SiteResolverPlugin { | |
| /** | |
| * A function which will be called during sites collection | |
| */ | |
| exec(sites: SiteInfo[]): SiteInfo[]; | |
| } | |
| const sites = (Object.values(plugins) as SiteResolverPlugin[]).reduce( | |
| (sites, plugin) => plugin.exec(sites), | |
| [], | |
| ); | |
| export const siteResolver = new SiteResolver(sites); | |
Xet Storage Details
- Size:
- 800 Bytes
- Xet hash:
- 2a973feafb231ad4f91cb7371122a14b7ca8f3a2bf779e556869a5cb08447126
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.