This repository was archived by the owner on Jun 25, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathnext.config.mjs
More file actions
70 lines (66 loc) · 1.47 KB
/
next.config.mjs
File metadata and controls
70 lines (66 loc) · 1.47 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import withPWAInit from '@ducanh2912/next-pwa';
const withPWA = withPWAInit({
dest: 'public',
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
swcMinify: true,
disable: process.env.NODE_ENV === 'development',
fallbacks: {
//image: "/static/images/fallback.png",
document: '/offline', // if you want to fallback to a custom page rather than /_offline
// font: '/static/font/fallback.woff2',
// audio: ...,
// video: ...,
},
workboxOptions: {
disableDevLogs: true,
},
});
const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{
hostname: 's4.anilist.co',
port: '',
pathname: '/**',
protocol: 'https',
},
{
hostname: 'artworks.thetvdb.com',
port: '',
pathname: '/**',
protocol: 'https',
},
{
hostname: 'media.kitsu.io',
port: '',
pathname: '/**',
protocol: 'https',
},
{
hostname: 'image.tmdb.org',
port: '',
pathname: '/**',
protocol: 'https',
},
{
hostname: 'upload.wikimedia.org',
port: '',
pathname: '/**',
protocol: 'https',
},
{
hostname: 'img1.ak.crunchyroll.com',
port: '',
pathname: '/**',
protocol: 'https',
},
],
},
};
const combinedConfig = withPWA(nextConfig);
export default combinedConfig;