refactor: Remove unnecessary output property in next.config.js

This commit is contained in:
mauro-balades 2024-09-02 20:16:06 +02:00
parent c338f3d04e
commit 9fab23d159
2 changed files with 10 additions and 1 deletions

View file

@ -45,4 +45,4 @@ const nextConfig = (phase, { defaultConfig }) => {
};
};
module.exports = {...withNextIntl(nextConfig), output: 'export'};
module.exports = {...withNextIntl(nextConfig)};

9
src/middleware.ts Normal file
View file

@ -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*']
};