-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (30 loc) · 635 Bytes
/
next.config.js
File metadata and controls
32 lines (30 loc) · 635 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
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true"
})
const withPWA = require("next-pwa")({
dest: "public"
})
module.exports = withBundleAnalyzer(
withPWA({
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "http",
hostname: "localhost"
},
{
protocol: "http",
hostname: "127.0.0.1"
},
{
protocol: "https",
hostname: "**"
}
]
},
experimental: {
serverComponentsExternalPackages: ["sharp", "onnxruntime-node"]
}
})
)