20 lines
420 B
JavaScript
20 lines
420 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
reactStrictMode: true,
|
|
webpack(config, { dev }) {
|
|
if (!dev) {
|
|
Object.assign(config.resolve.alias, {
|
|
react: "preact/compat",
|
|
"react-dom": "preact/compat",
|
|
"react-dom/test-utils": "preact/test-utils",
|
|
});
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
export default nextConfig;
|