-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
46 lines (44 loc) · 958 Bytes
/
next.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
36
37
38
39
40
41
42
43
44
45
46
const withPWA = require('next-pwa')
const nextTranslate = require('next-translate')
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config()
}
module.exports = nextTranslate(
withPWA({
env: {
SENTRY_DSN: process.env.SENTRY_DSN,
GTM_ID: process.env.GTM_ID,
GHOST_API_BASE_URL: process.env.GHOST_API_BASE_URL,
GHOST_CONTENT_API_KEY: process.env.GHOST_CONTENT_API_KEY,
GHOST_ADMIN_API_KEY: process.env.GHOST_ADMIN_API_KEY
},
images: {
deviceSizes: [
16,
32,
48,
64,
96,
128,
256,
384,
480,
576,
768,
992,
1366,
1600
],
domains: [
'localhost',
'static.ghost.org',
'assets.wealize.digital',
's3-eu-central-1.amazonaws.com'
]
},
pwa: {
disable: process.env.NODE_ENV === 'development',
dest: 'public'
}
})
)