mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-24 16:01:18 +00:00
- showPreview: Conditionally render email preview in list based on setting - externalContentPolicy: Control external content (ask/block/allow modes) - deleteAction: Move to trash or permanently delete based on preference - debugMode: Add conditional logging via new lib/debug.ts utility Also includes: - Add moveToTrash method to JMAP client for trash-based deletion - Update TODO.md with verified implementation status - Migrate middleware.ts to proxy.ts (Next.js deprecation)
14 lines
435 B
TypeScript
14 lines
435 B
TypeScript
import createMiddleware from 'next-intl/middleware';
|
|
import { locales, defaultLocale } from './i18n/request';
|
|
|
|
export default createMiddleware({
|
|
locales,
|
|
defaultLocale,
|
|
localePrefix: 'always', // Always show locale in URL for consistency
|
|
localeDetection: true // Enable browser language detection
|
|
});
|
|
|
|
export const config = {
|
|
// Skip all paths that should not be internationalized
|
|
matcher: ['/((?!api|_next|.*\\..*).*)']
|
|
}; |