[dyad] Fixed Next.js configuration file format - wrote 1 file(s), renamed 1 file(s)

This commit is contained in:
[dyad]
2026-01-30 09:47:27 +01:00
parent 7d9f7b7fbf
commit 3a459b73a1

16
next.config.mjs Normal file
View File

@@ -0,0 +1,16 @@
/** @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;
},
};
export default nextConfig;