-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathdefault.js
More file actions
80 lines (79 loc) · 2.44 KB
/
default.js
File metadata and controls
80 lines (79 loc) · 2.44 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
/*
* 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
*/
// eslint-disable-next-line @typescript-eslint/no-var-requires
const sites = require('./sites.js')
module.exports = {
app: {
url: {
site: 'path',
locale: 'path',
showDefaults: true,
interpretPlusSignAsSpace: false
},
login: {
passwordless: {
enabled: false,
callbackURI:
process.env.PASSWORDLESS_LOGIN_CALLBACK_URI || '/passwordless-login-callback'
},
social: {
enabled: false,
idps: ['google', 'apple'],
redirectURI: process.env.SOCIAL_LOGIN_REDIRECT_URI || '/social-callback'
},
resetPassword: {
callbackURI: process.env.RESET_PASSWORD_CALLBACK_URI || '/reset-password-callback'
}
},
defaultSite: 'RefArchGlobal',
siteAliases: {
RefArch: 'us',
RefArchGlobal: 'global'
},
sites,
commerceAPI: {
proxyPath: `/mobify/proxy/api`,
parameters: {
clientId: 'c9c45bfd-0ed3-4aa2-9971-40f88962b836',
organizationId: 'f_ecom_zzrf_001',
shortCode: '8o7m175y',
siteId: 'RefArchGlobal'
}
},
einsteinAPI: {
host: 'https://api.cquotient.com',
einsteinId: '1ea06c6e-c936-4324-bcf0-fada93f83bb1',
// This differs from the siteId in commerceAPIConfig for testing purposes
siteId: 'aaij-MobileFirst',
isProduction: false
}
},
externals: [],
pageNotFoundURL: '/page-not-found',
ssrEnabled: true,
ssrOnly: ['ssr.js', 'ssr.js.map', 'node_modules/**/*.*'],
ssrShared: [
'static/ico/favicon.ico',
'static/robots.txt',
'**/*.js',
'**/*.js.map',
'**/*.json'
],
ssrParameters: {
ssrFunctionNodeVersion: '20.x',
proxyConfigs: [
{
host: 'kv7kzm78.api.commercecloud.salesforce.com',
path: 'api'
},
{
host: 'zzrf-001.dx.commercecloud.salesforce.com',
path: 'ocapi'
}
]
}
}