[dyad] Fixing next-intl configuration error - wrote 1 file(s), renamed 1 file(s)
This commit is contained in:
18
next.config.js
Normal file
18
next.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const withNextIntl = require('next-intl/plugin')('./src/i18n.ts');
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
webpack: (config) => {
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
config.module.rules.push({
|
||||
test: /\.(jsx|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
enforce: "pre",
|
||||
use: "@dyad-sh/nextjs-webpack-component-tagger",
|
||||
});
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = withNextIntl(nextConfig);
|
||||
Reference in New Issue
Block a user