For example, swapping modules in StrictMode doesn't work, as it swaps twice, undoing the change.
23 lines
429 B
JavaScript
23 lines
429 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "export",
|
|
distDir: "dist",
|
|
reactStrictMode: false,
|
|
|
|
experimental: {
|
|
webpackBuildWorker: true,
|
|
},
|
|
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
|
|
webpack: (config) => {
|
|
config.output.webassemblyModuleFilename = 'static/wasm/[modulehash].wasm'
|
|
config.experiments.asyncWebAssembly = true;
|
|
return config;
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|