-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.js
More file actions
46 lines (45 loc) · 1.15 KB
/
next.config.js
File metadata and controls
46 lines (45 loc) · 1.15 KB
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
37
38
39
40
41
42
43
44
45
46
/** @type {import('next').NextConfig} */
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer({
env: {
NEXT_PUBLIC_ENV: "PRODUCTION", //your next configs goes here
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
reactStrictMode: false,
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
config.experiments = {
asyncWebAssembly: true,
layers: true,
};
if (isServer) {
config.output.webassemblyModuleFilename =
"./../static/wasm/[modulehash].wasm";
} else {
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
}
// Important: return the modified config
return config;
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "ordinals.com",
port: "",
pathname: "/content/**",
},
],
},
});
// module.exports = nextConfig;