-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnext.config.js
36 lines (34 loc) · 930 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
const withPWA = require("next-pwa");
const defaultRuntimeCaching = require("./cache");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: [
'st.nettruyenmoi.com',
'st.nhattruyengo.com',
'cmanganew.com',
'hentaicb.top',
'lxhentai.com',
'i7.xem-truyen.com',
'mangapk.com',
'truyentranhlh.net'
],
deviceSizes: [230, 300, 480, 720, 1280, 1920, 3840]
},
pwa: {
dest: "public",
buildExcludes: [
/middleware-manifest\.json$/,
/_middleware\.js$/,
/_middleware\.js\.map$/,
/middleware-runtime\.js$/,
/middleware-runtime\.js\.map$/,
],
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
runtimeCaching: defaultRuntimeCaching,
},
};
module.exports = process.env.NODE_ENV === 'development' ? nextConfig : withPWA(nextConfig);