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,
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',