UNPKG

@spartacus/core

Version:

Spartacus - the core framework

35 lines (34 loc) 1.24 kB
import { SiteContextConfig } from '../../site-context/config/site-context-config'; import { OccEndpoints } from '../occ-models/occ-endpoints.model'; import { LoadingScopes } from './loading-scopes-config'; import * as i0 from "@angular/core"; export interface BackendConfig { occ?: { baseUrl?: string; prefix?: string; /** * Indicates whether or not cross-site Access-Control requests should be made * using credentials such as cookies, authorization headers or TLS client certificates */ useWithCredentials?: boolean; endpoints?: OccEndpoints; }; media?: { /** * Media URLs are typically relative, so that the host can be configured. * Configurable media baseURLs are useful for SEO, multi-site, * switching environments, etc. */ baseUrl?: string; }; loadingScopes?: LoadingScopes; } export declare abstract class OccConfig extends SiteContextConfig { backend?: BackendConfig; static ɵfac: i0.ɵɵFactoryDeclaration<OccConfig, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OccConfig>; } declare module '../../config/config-tokens' { interface Config extends OccConfig { } }