forked from hoangvu12/Kaguya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (32 loc) · 850 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
const withPWA = require("next-pwa");
const defaultRuntimeCaching = require("./cache");
const { i18n } = require("./next-i18next.config");
module.exports = withPWA({
images: {
domains: [
"s4.anilist.co",
"res.cloudinary.com",
"lh3.googleusercontent.com",
"platform-lookaside.fbsbx.com",
"i.ibb.co",
"thumb.tapecontent.net",
"emojis.slackmojis.com",
"pic-bstarstatic.akamaized.net",
"cdn.discordapp.com",
],
minimumCacheTTL: 604800, // a week,
},
pwa: {
dest: "public",
buildExcludes: [
/middleware-manifest\.json$/,
/_middleware\.js$/,
/_middleware\.js\.map$/,
/middleware-runtime\.js$/,
/middleware-runtime\.js\.map$/,
],
disable: process.env.NODE_ENV === "development",
runtimeCaching: defaultRuntimeCaching,
},
i18n,
});