From 98f27d3282304df1257f1c85dd6739a904486a3b Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Sun, 18 Jan 2026 14:01:35 +0100 Subject: [PATCH] [dyad] Fixing next-intl configuration error - wrote 1 file(s), renamed 1 file(s) --- next.config.ts => next.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename next.config.ts => next.config.js (63%) diff --git a/next.config.ts b/next.config.js similarity index 63% rename from next.config.ts rename to next.config.js index a23e855..efa196e 100644 --- a/next.config.ts +++ b/next.config.js @@ -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); \ No newline at end of file