Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
registerLocaleData(localeDe);
registerLocaleData(localeJa);
registerLocaleData(localeZh);
const devImports = [];
if (!environment.production) {
devImports.push(StoreDevtoolsModule.instrument());
}
@NgModule({
imports: [
BrowserModule.withServerTransition({ appId: 'spartacus-app' }),
BrowserTransferStateModule,
B2cStorefrontModule.withConfig({
backend: {
occ: {
baseUrl: environment.occBaseUrl,
legacy: false,
},
oms: {
baseUrl: environment.occBaseUrl,
},
},
context: {
urlParameters: ['baseSite', 'language', 'currency'],
baseSite: [
'electronics-spa',
'electronics',
'apparel-de',
'apparel-uk',
const isReady = () => {
const factory = componentFactoryResolver.resolveComponentFactory(
EventDemoComponent
);
outletService.add('cx-storefront', factory, OutletPosition.BEFORE);
};
return isReady;
registerLocaleData(localeDe);
registerLocaleData(localeJa);
registerLocaleData(localeZh);
const devImports = [];
if (!environment.production) {
devImports.push(StoreDevtoolsModule.instrument());
}
@NgModule({
imports: [
BrowserModule.withServerTransition({ appId: 'spartacus-app' }),
BrowserTransferStateModule,
StorefrontModule.withConfig({
production: environment.production,
backend: {
occ: {
baseUrl: environment.occBaseUrl,
},
},
pwa: {
enabled: true,
addToHomeScreen: true,
},
siteContext: {
urlEncodingParameters: ['BASE_SITE', 'LANGUAGE', 'CURRENCY'],
parameters: {
BASE_SITE: {
values: ['electronics-spa', 'apparel-de', 'apparel-uk'],
defaultValue: 'electronics-spa',