Stage M1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user