-
Notifications
You must be signed in to change notification settings - Fork 36
/
d2.config.js
35 lines (30 loc) · 962 Bytes
/
d2.config.js
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
const config = {
type: 'app',
name: 'dashboard',
title: 'Dashboard',
coreApp: true,
id: '8a05188c-5b2d-496d-a08e-595810748d52',
minDHIS2Version: '2.40',
direction: 'auto',
pwa: {
enabled: true,
caching: {
patternsToOmitFromAppShell: [
// Make these specific as possible --
// unspecific ones have caused errors on instances with
// 'analytics' in the name, for example
/\/api\/(\d+\/)?dashboards\/[a-zA-Z0-9]*/,
/\/api\/(\d+\/)?maps/,
/\/api\/(\d+\/)?eventVisualizations/,
/\/api\/(\d+\/)?visualizations/,
/\/api\/(\d+\/)?analytics/,
/\/api\/(\d+\/)?geoFeatures/,
/cartodb-basemaps-[a-c]\.global\.ssl\.fastly\.net/,
],
},
},
entryPoints: {
app: './src/AppWrapper.js',
},
}
module.exports = config