20 lines
524 B
TypeScript
20 lines
524 B
TypeScript
import type { NextConfig } from "next";
|
|
import createNextIntlPlugin from 'next-intl/plugin';
|
|
|
|
const withNextIntl = createNextIntlPlugin('./src/i18n.ts');
|
|
|
|
const nextConfig: 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;
|
|
},
|
|
};
|
|
|
|
export default withNextIntl(nextConfig); |