-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathdefault.js
More file actions
165 lines (164 loc) · 5.63 KB
/
default.js
File metadata and controls
165 lines (164 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/**
* This is a mock config to be used for unit tests
*
* By default, a generated project is a single-site and single-locale app
* However, it can be extended to multi-site with multi-locale easily.
* To ensure that feature work correctly, we test our code with multi-site config in mind, so we created this mock config.
* A single-site, single-locale config is a special case of multi-site case.
*/
const commerceAgentSettings = {
enabled: 'false',
askAgentOnSearch: 'false',
embeddedServiceName: 'MIAW_Guided_Shopper_production',
embeddedServiceEndpoint: 'https://myorg.salesforce.com/ESWMIAWGuidedShopper',
scriptSourceUrl: 'https://myorg.salesforce.com/ESWMIAWGuidedShopper/assets/js/bootstrap.min.js',
scrt2Url: 'https://myorg.salesforce.com-scrt.com',
salesforceOrgId: '00DSB00000MJ7YH',
commerceOrgId: 'f_ecom_zzeu_052',
siteId: 'RefArchGlobal'
}
module.exports = {
app: {
commerceAgent: commerceAgentSettings,
url: {
locale: 'path',
site: 'path',
showDefaults: true
},
login: {
tokenLength: 8,
passwordless: {
enabled: false,
mode: 'email',
landingPath: '/passwordless-login-landing'
},
social: {
enabled: false,
idps: ['google', 'apple']
},
resetPassword: {
mode: 'email',
landingPath: '/reset-password-landing'
}
},
siteAliases: {
'site-1': 'uk',
'site-2': 'us'
},
defaultSite: 'site-1',
sites: [
{
id: 'site-1',
l10n: {
defaultLocale: 'en-GB',
defaultCurrency: 'GBP',
supportedLocales: [
{
id: 'en-GB',
preferredCurrency: 'GBP'
},
{
id: 'fr-FR',
alias: 'fr',
preferredCurrency: 'EUR'
},
{
id: 'it-IT',
preferredCurrency: 'EUR'
}
]
}
},
{
id: 'site-2',
l10n: {
defaultLocale: 'en-US',
defaultCurrency: 'USD',
supportedLocales: [
{
id: 'en-US',
preferredCurrency: 'USD'
},
{
id: 'en-CA',
preferredCurrency: 'USD'
}
]
}
}
],
commerceAPI: {
proxyPath: `/mobify/proxy/api`,
parameters: {
clientId: 'c9c45bfd-0ed3-4aa2-9971-40f88962b836',
organizationId: 'f_ecom_zzrf_001',
shortCode: '11111111',
siteId: 'site-1'
}
},
einsteinAPI: {
host: 'http://localhost:7777',
einsteinId: '11111111',
// This differs from the siteId in commerceAPIConfig for testing purposes
siteId: 'EinsteinTestSite',
// Flag Einstein activities as coming from a production environment.
// By setting this to true, the Einstein activities generated by the environment will appear
// in production environment reports
// This is temporary and is meant as a placeholder until there is a mechanism for reading
// the is_production property from an MRT target
isProduction: false
},
dataCloudAPI: {
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
},
oneClickCheckout: {
enabled: false
},
storeLocatorEnabled: true,
multishipEnabled: true,
sfPayments: {
enabled: true,
sdkUrl: '',
metadataUrl: ''
}
},
// This list contains server-side only libraries that you don't want to be compiled by webpack
externals: [],
// Page not found url for your app
pageNotFoundURL: '/page-not-found',
// Enables or disables building the files necessary for server-side rendering.
ssrEnabled: true,
// This list determines which files are available exclusively to the server-side rendering system
// and are not available through the /mobify/bundle/ path.
ssrOnly: ['ssr.js', 'ssr.js.map', 'node_modules/**/*.*'],
// This list determines which files are available to the server-side rendering system
// and available through the /mobify/bundle/ path.
ssrShared: [
'static/ico/favicon.ico',
'static/robots.txt',
'**/*.js',
'**/*.js.map',
'**/*.json'
],
// Additional parameters that configure Express app behavior.
ssrParameters: {
ssrFunctionNodeVersion: '24.x',
proxyConfigs: [
{
host: 'localhost:8888',
path: 'api'
},
{
host: 'localhost:9999',
path: 'ocapi'
}
]
}
}