-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (30 loc) · 786 Bytes
/
Copy pathnext.config.js
File metadata and controls
32 lines (30 loc) · 786 Bytes
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
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');
module.exports = withPWA({
reactStrictMode: true,
pwa: {
dest: 'public',
disable: process.env.NODE_ENV === 'development',
runtimeCaching,
},
images: {
domains: [
'localhost',
'127.0.0.1:8000',
'127.0.0.1',
'http://127.0.0.1:8000/',
'http://127.0.0.1:8000/',
'http://localhost:8000',
'maps.googleapis.com',
],
},
...(process.env.NODE_ENV === 'production' && {
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
}),
});