18 lines
468 B
JavaScript
18 lines
468 B
JavaScript
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); |