-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.js
78 lines (78 loc) · 3.03 KB
/
default.js
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
const sites = require('./sites.js')
module.exports = {
app: {
// Customize how your 'site' and 'locale' are displayed in the url.
url: {
// Determine where the siteRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
// site: 'none',
// Determine where the localeRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
locale: 'none'
// This boolean value dictates whether or not default site or locale values are shown in the url. Defaults to: false
// showDefaults: true
},
// The default site for your app. This value will be used when a siteRef could not be determined from the url
defaultSite: 'RefArch',
// Provide aliases for your sites. These will be used in place of your site id when generating paths throughout the application.
// siteAliases: {
// RefArch: 'us'
// },
// The sites for your app, which is imported from sites.js
sites,
// Commerce api config
commerceAPI: {
proxyPath: `/mobify/proxy/api`,
parameters: {
clientId: '1d763261-6522-4913-9d52-5d947d3b94c4',
organizationId: 'f_ecom_zzte_053',
shortCode: 'kv7kzm78',
siteId: 'RefArch'
}
},
// Einstein api config
einsteinAPI: {
proxyPath: `/mobify/proxy/einstein`,
einsteinId: '1ea06c6e-c936-4324-bcf0-fada93f83bb1',
siteId: 'aaij-MobileFirst'
}
},
// 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: '14.x',
proxyConfigs: [
{
host: 'kv7kzm78.api.commercecloud.salesforce.com',
path: 'api'
},
{
host: 'zzte-053.sandbox.us02.dx.commercecloud.salesforce.com',
path: 'ocapi'
},
{
host: 'api.cquotient.com',
path: 'einstein'
},
{
host: 'sfcsfproxy.uniform.app',
path: 'uniform'
}
]
}
}