-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
39 lines (35 loc) · 896 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
// import * as nextPWA from 'next-pwa';
const withPWA = require('next-pwa')({ // see package https://www.npmjs.com/package/next-pwa
dest: 'public',
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
swcMinify: true,
// disable: process.env.NODE_ENV === 'development',
workboxOptions: {
disableDevLogs: true,
},
cacheStartUrl: true, // weather to cache start url or not
dynamicStartUrlRedirect: true,
register: true,
// scope: '/app',
sw: 'service-worker.js', // an alias for service worker file outputs.
});
/** @type {import('next').NextConfig} */
const nextConfig = {
...withPWA,
env: {
//
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**', // 'example.com'
port: '',
pathname: '**', // '/casino/image1/**'
}
]
}
};
module.exports = nextConfig;