From e8ee913d14ee80e1edb1375c40edefc9cf01921c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Fri, 16 Feb 2024 16:02:14 +0100 Subject: [PATCH] fixed next js config imports --- next.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index 0bdc028..9393371 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,4 @@ -import createNextIntlPlugin from 'next-intl/plugin'; +const createNextIntlPlugin = require('next-intl/plugin'); /** @type {import('next').NextConfig} */ const nextConfig = { @@ -18,9 +18,8 @@ const nextConfig = { } }; -const withNextIntl = createNextIntlPlugin(); +const withNextIntl = createNextIntlPlugin('./app/i18n.ts'); const nextConfigIntl = withNextIntl(nextConfig); -export default nextConfigIntl; -// module.exports = nextConfigIntl; \ No newline at end of file +module.exports = nextConfigIntl; \ No newline at end of file