-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
32 lines (27 loc) · 859 Bytes
/
next.config.mjs
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
// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
webpack: (config, options) => {
config.module.rules.push({
test: /\.tar/,
use: "raw-loader",
});
config.experiments.asyncWebAssembly = true;
config.experiments.syncWebAssembly = true;
return config;
},
images: {
remotePatterns: [
{ protocol: "https", hostname: "picsum.photos" },
{ protocol: "https", hostname: "tailwindcss.com" },
{ protocol: "https", hostname: "**" },
],
},
};
import withBundleAnalyzer from "@next/bundle-analyzer";
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
export default bundleAnalyzer(nextConfig);
// run analyze use: ANALYZE=true npm run build