[dyad] Fixing next-intl configuration error - wrote 1 file(s), renamed 1 file(s)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
const withNextIntl = require('next-intl/plugin')('./src/i18n.ts');
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
webpack: (config) => {
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
config.module.rules.push({
|
||||
@@ -14,4 +15,4 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
module.exports = withNextIntl(nextConfig);
|
||||
Reference in New Issue
Block a user