fixed next js config imports

This commit is contained in:
2024-02-16 16:02:14 +01:00
parent 65a7249faa
commit e8ee913d14

View File

@@ -1,4 +1,4 @@
import createNextIntlPlugin from 'next-intl/plugin'; const createNextIntlPlugin = require('next-intl/plugin');
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
@@ -18,9 +18,8 @@ const nextConfig = {
} }
}; };
const withNextIntl = createNextIntlPlugin(); const withNextIntl = createNextIntlPlugin('./app/i18n.ts');
const nextConfigIntl = withNextIntl(nextConfig); const nextConfigIntl = withNextIntl(nextConfig);
export default nextConfigIntl;
// module.exports = nextConfigIntl; module.exports = nextConfigIntl;