diff --git a/next.config.js b/next.config.js index 3122d09..639cbcc 100644 --- a/next.config.js +++ b/next.config.js @@ -45,4 +45,4 @@ const nextConfig = (phase, { defaultConfig }) => { }; }; -module.exports = {...withNextIntl(nextConfig), output: 'export'}; +module.exports = {...withNextIntl(nextConfig)}; diff --git a/src/middleware.ts b/src/middleware.ts new file mode 100644 index 0000000..e8bdd3f --- /dev/null +++ b/src/middleware.ts @@ -0,0 +1,9 @@ +import createMiddleware from 'next-intl/middleware'; +import {routing} from './i18n/routing'; + +export default createMiddleware(routing); + +export const config = { + // Match only internationalized pathnames + matcher: ['/', '/(de|en)/:path*'] +}; \ No newline at end of file