This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:22 +07:00
parent 3e5d38ec18
commit 3d6b0e0d4e
145 changed files with 7817 additions and 801 deletions
+10 -1
View File
@@ -1,5 +1,14 @@
import createNextIntlPlugin from 'next-intl/plugin';
import type { NextConfig } from 'next';
/**
* Points next-intl at the request config. Without this the message catalogs are
* never registered and every server-side `getTranslations` call fails at build
* time rather than at runtime — which is the good failure mode, but only if the
* plugin is wired up in the first place.
*/
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
const nextConfig: NextConfig = {
reactStrictMode: true,
@@ -31,4 +40,4 @@ const nextConfig: NextConfig = {
},
};
export default nextConfig;
export default withNextIntl(nextConfig);