-
Notifications
You must be signed in to change notification settings - Fork 2
/
custom-application-config.mjs
51 lines (49 loc) · 1.17 KB
/
custom-application-config.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
47
48
49
50
51
import { PERMISSIONS, entryPointUriPath } from './src/constants';
/**
* @type {import('@commercetools-frontend/application-config').ConfigOptions}
*/
const config = {
name: 'Custom Objects Editor',
entryPointUriPath,
cloudIdentifier: '${env:CLOUD_IDENTIFIER}',
env: {
production: {
applicationId: '${env:APPLICATION_ID}',
url: '${env:APPLICATION_URL}',
},
development: {
initialProjectKey: '${env:INITIAL_PROJECT_KEY}',
},
},
oAuthScopes: {
view: [
'view_products',
'view_orders',
'view_customers',
'view_key_value_documents',
],
manage: [
'manage_products',
'manage_orders',
'manage_customers',
'manage_key_value_documents',
],
},
icon: '${path:@commercetools-frontend/assets/application-icons/rocket.svg}',
mainMenuLink: {
defaultLabel: 'Custom Objects Editor',
labelAllLocales: [],
permissions: [PERMISSIONS.View],
},
submenuLinks: [
// {
// defaultLabel: 'Custom Objects Editor List',
// uriPath: 'custom-objects',
// },
{
defaultLabel: 'Container Schema Manager',
uriPath: 'containers',
},
],
};
export default config;