Skip to content

Commit 84a3f36

Browse files
authored
Refactor image configuration in next.config.js
Removed image domains and replaced with remote patterns for better image handling.
1 parent f7116c2 commit 84a3f36

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

next.config.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,26 @@ const withPWA = require("next-pwa")({
88
});
99

1010
const nextConfig = {
11-
webpack: config => config,
11+
turbopack: false,
1212

1313
images: {
14-
domains: [
15-
"mazassumnida.wtf",
16-
"openweathermap.org",
17-
"avatars.githubusercontent.com",
18-
"lh3.googleusercontent.com",
19-
"lh4.googleusercontent.com",
20-
"lh5.googleusercontent.com",
21-
"lh6.googleusercontent.com",
22-
],
2314
remotePatterns: [
2415
{
2516
protocol: "https",
2617
hostname: "*.public.blob.vercel-storage.com",
2718
pathname: "/**",
2819
},
20+
{ protocol: "https", hostname: "mazassumnida.wtf" },
21+
{ protocol: "https", hostname: "openweathermap.org" },
22+
{ protocol: "https", hostname: "avatars.githubusercontent.com" },
23+
{ protocol: "https", hostname: "lh3.googleusercontent.com" },
24+
{ protocol: "https", hostname: "lh4.googleusercontent.com" },
25+
{ protocol: "https", hostname: "lh5.googleusercontent.com" },
26+
{ protocol: "https", hostname: "lh6.googleusercontent.com" },
2927
],
3028
},
31-
env: {},
29+
3230
reactStrictMode: true,
33-
"fontawesome-svg-core": {
34-
license: "free",
35-
},
3631
};
3732

3833
module.exports = withPWA(nextConfig);

0 commit comments

Comments
 (0)