refactor: Remove unnecessary output property in next.config.js
This commit is contained in:
@@ -45,4 +45,4 @@ const nextConfig = (phase, { defaultConfig }) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {...withNextIntl(nextConfig), output: 'export'};
|
module.exports = {...withNextIntl(nextConfig)};
|
||||||
|
|||||||
9
src/middleware.ts
Normal file
9
src/middleware.ts
Normal 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*']
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user