fix: i18n next

This commit is contained in:
archer 2023-08-09 11:05:41 +08:00
parent 07dfce9b28
commit 5fed561471
No known key found for this signature in database
GPG Key ID: 569A5660D2379E28

View File

@ -21,13 +21,17 @@ const nextConfig = {
asyncWebAssembly: true, asyncWebAssembly: true,
layers: true layers: true
}; };
config.module.rules = config.module.rules.concat([ config.module = {
...config.module,
rules: config.module.rules.concat([
{ {
test: /\.svg$/i, test: /\.svg$/i,
issuer: /\.[jt]sx?$/, issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'] use: ['@svgr/webpack']
} }
]); ]),
exprContextCritical: false
};
return config; return config;
} }