-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
45 lines (39 loc) · 945 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
40
41
42
43
44
45
const withPWA = require("next-pwa")({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
});
const hosts = [
// from spotify api
"i.scdn.co",
"t.scdn.co",
"mosaic.scdn.co",
"blend-playlist-covers.spotifycdn.com",
"wrapped-images.spotifycdn.com",
"lineup-images.scdn.co",
"platform-lookaside.fbsbx.com",
"image-cdn-ak.spotifycdn.com",
"image-cdn-fa.spotifycdn.com",
"thisis-images.spotifycdn.com",
"seeded-session-images.scdn.co",
"seed-mix-image.spotifycdn.com",
"newjams-images.scdn.co",
"daily-mix.scdn.co",
// from youtube api
"i.ytimg.com",
"yt3.ggpht.com",
// from youtube-music (unofficial) api
"lh3.googleusercontent.com",
"yt3.googleusercontent.com",
// 🤡
"localhost",
];
const nextConfig = withPWA({
images: {
remotePatterns: hosts.map((host) => ({
hostname: host,
})),
},
});
module.exports = nextConfig;