- 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>
13 lines
345 B
TypeScript
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|.*\\..*).*)'],
|
|
}
|