-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.js
More file actions
36 lines (33 loc) · 823 Bytes
/
next.config.js
File metadata and controls
36 lines (33 loc) · 823 Bytes
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 {
withHydrationOverlay,
} = require("@builder.io/react-hydration-overlay/next");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "http",
hostname: "localhost",
port: "4000",
pathname: "/**",
},
{
protocol: "https",
hostname: "c1.staticflickr.com",
port: "",
pathname: "/**",
},
],
},
};
const bundledConfig = withBundleAnalyzer(nextConfig);
let exportedConfig = bundledConfig;
if (process.env.NODE_ENV !== "production") {
exportedConfig = withHydrationOverlay({
appRootSelector: "body",
})(bundledConfig);
}
module.exports = exportedConfig;