-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-application-config.ts
70 lines (68 loc) · 1.63 KB
/
custom-application-config.ts
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
import { entryPointUriPath, PERMISSIONS } from './src/constants';
import type { ConfigOptions } from '@commercetools-frontend/application-config';
const config: ConfigOptions = {
name: 'GraphQL Explorer',
entryPointUriPath,
cloudIdentifier: 'gcp-eu',
env: {
development: {
initialProjectKey: '${env:CTP_INITIAL_PROJECT_KEY}',
},
production: {
applicationId: '${env:APPLICATION_ID}',
url: '${env:APPLICATION_URL}',
},
},
oAuthScopes: {
view: [
'view_api_clients',
'view_cart_discounts',
'view_customer_groups',
'view_customers',
'view_discount_codes',
'view_import_containers',
'view_orders',
'view_payments',
'view_products',
'view_project_settings',
'view_shipping_methods',
'view_states',
'view_stores',
'view_tax_categories',
'view_types',
],
manage: [],
},
headers: {
csp: {
'connect-src': ['${env:HOST_GCP_STAGING}'],
},
},
icon: '${path:@commercetools-frontend/assets/application-icons/rocket.svg}',
mainMenuLink: {
permissions: [PERMISSIONS.View],
defaultLabel: 'Graphql Explorer',
labelAllLocales: [],
},
submenuLinks: [
{
uriPath: 'platform',
permissions: [PERMISSIONS.View],
defaultLabel: 'commercetools platform',
labelAllLocales: [],
},
{
uriPath: 'users',
permissions: [PERMISSIONS.View],
defaultLabel: 'Users',
labelAllLocales: [],
},
{
uriPath: 'settings',
permissions: [PERMISSIONS.View],
defaultLabel: 'Settings',
labelAllLocales: [],
},
],
};
export default config;