-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathdefault.js
More file actions
111 lines (110 loc) · 3.38 KB
/
default.js
File metadata and controls
111 lines (110 loc) · 3.38 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
/*
* 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 @typescript-eslint/no-var-requires */
const sites = require('./sites.js')
const {parseSettings} = require('./utils.js')
module.exports = {
app: {
commerceAgent: parseSettings(process.env.COMMERCE_AGENT_SETTINGS) || {
enabled: 'false',
askAgentOnSearch: 'false',
embeddedServiceName: '',
embeddedServiceEndpoint: '',
scriptSourceUrl: '',
scrt2Url: '',
salesforceOrgId: '',
commerceOrgId: '',
siteId: '',
enableConversationContext: 'false',
conversationContext: []
},
url: {
site: 'path',
locale: 'path',
showDefaults: true,
interpretPlusSignAsSpace: false
},
login: {
passwordless: {
enabled: true,
mode: 'email',
landingPath: '/passwordless-login-landing'
},
social: {
enabled: true,
idps: ['google', 'apple'],
redirectURI: process.env.SOCIAL_LOGIN_REDIRECT_URI || '/social-callback'
},
resetPassword: {
mode: 'email',
landingPath: '/reset-password-landing'
}
},
defaultSite: 'RefArchGlobal',
siteAliases: {
RefArch: 'us',
RefArchGlobal: 'global'
},
sites,
commerceAPI: {
proxyPath: `/mobify/proxy/api`,
parameters: {
clientId: '475ad705-e2c1-4808-af78-81661f754511',
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
},
dataCloudAPI: {
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
},
partialHydrationEnabled: false,
pages: {
cart: {
groupBonusProductsWithQualifyingProduct: true
}
},
storeLocatorEnabled: true,
multishipEnabled: true,
googleCloudAPI: {
apiKey: process.env.GOOGLE_CLOUD_API_KEY
}
},
envBasePath: '/',
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: '22.x',
proxyConfigs: [
{
host: 'kv7kzm78.api.commercecloud.salesforce.com',
path: 'api'
},
{
host: 'zzrf-001.dx.commercecloud.salesforce.com',
path: 'ocapi'
}
]
}
}