chatdesk-ui/chatdesk-ui/next.config.js

37 lines
717 B
JavaScript

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: "http",
hostname: "**"
},
{
protocol: "https",
hostname: "**"
}
]
},
experimental: {
serverComponentsExternalPackages: ["sharp", "onnxruntime-node"]
}
})
)