Files
awoooi/apps/web/src/middleware.ts
OG T 196d269b92 feat: add all application source code
- apps/api: FastAPI backend with Dockerfile
- apps/web: Next.js frontend with Dockerfile
- apps/sensor: Signal collection agent
- packages: shared packages

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 18:57:44 +08:00

13 lines
345 B
TypeScript

import createMiddleware from 'next-intl/middleware'
import { routing } from './i18n/routing'
export default createMiddleware(routing)
export const config = {
// 匹配所有路徑,除了以下例外:
// - api 路由
// - _next 靜態檔案
// - 靜態資源 (images, fonts, etc.)
matcher: ['/((?!api|_next|_vercel|.*\\..*).*)'],
}