-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
34 lines (29 loc) · 749 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
/** @type {import('next').NextConfig} */
const runtimeCaching = require("next-pwa/cache");
// reactStrictMode: true,
// const withPWA = require("next-pwa")({
// disable: process.env.NODE_ENV === "development",
// dest: "public",
// register: true,
// skipWaiting: false,
// runtimeCaching,
// });
// const nextConfig = withPWA({});
// module.exports = nextConfig;
const withPWA = require("next-pwa")({
dest: "public",
register: true,
skipWaiting: true,
runtimeCaching,
buildExcludes: [/middleware-manifest.json$/],
});
const nextConfig = withPWA({
distDir: 'build',
images : {
domains : [
'raw.githubusercontent.com',
'avatars.githubusercontent.com'
]
}
});
module.exports = nextConfig;