Skip to content

Commit

Permalink
fix: i18n next
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Aug 9, 2023
1 parent 07dfce9 commit 5fed561
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions client/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ const nextConfig = {
asyncWebAssembly: true,
layers: true
};
config.module.rules = config.module.rules.concat([
{
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack']
}
]);
config.module = {
...config.module,
rules: config.module.rules.concat([
{
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack']
}
]),
exprContextCritical: false
};

return config;
}
Expand Down

0 comments on commit 5fed561

Please sign in to comment.