Enable React strict mode

This commit is contained in:
Gabe Kangas 2022-10-26 22:45:13 -07:00
parent 092db0df8d
commit ec57feac94
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -2,6 +2,7 @@ const withLess = require('next-with-less');
module.exports = withLess({
trailingSlash: true,
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
@ -9,11 +10,6 @@ module.exports = withLess({
use: ['@svgr/webpack'],
});
config.module.rules.push({
test: /\.html/,
type: 'asset/source',
});
return config;
},
async rewrites() {