-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-application-config.example.mjs
46 lines (44 loc) · 1.25 KB
/
custom-application-config.example.mjs
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
import { PERMISSIONS, entryPointUriPath } from './src/constants';
/**
* @type {import('@commercetools-frontend/application-config').ConfigOptions}
*/
const config = {
name: 'Scaleflex DAM',
entryPointUriPath,
cloudIdentifier: 'gcp-eu',
env: {
development: {
initialProjectKey: 'project-key',
},
production: {
applicationId: 'TODO',
url: 'https://your_app_hostname.com',
},
},
oAuthScopes: {
view: ['view_products'],
manage: ['manage_products'],
},
icon: '${path:@commercetools-frontend/assets/application-icons/rocket.svg}',
mainMenuLink: {
defaultLabel: 'Scaleflex DAM',
labelAllLocales: [],
permissions: [PERMISSIONS.View],
},
submenuLinks: [
{
uriPath: 'products',
defaultLabel: 'Products',
labelAllLocales: [],
permissions: [PERMISSIONS.View],
},
],
headers: {
csp: {
"connect-src": ["https://*.ultrafast.io", "https://*.filerobot.com", "https://your_app_hostname.com"],
"frame-src": ["https://js.stripe.com", "https://hooks.stripe.com", "https://*.filerobot.com","https://your_app_hostname.com"],
"script-src": ["https://js.stripe.com", "https://*.filerobot.com","https://your_app_hostname.com"]
}
}
};
export default config;