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>
This commit is contained in:
12
apps/web/src/middleware.ts
Normal file
12
apps/web/src/middleware.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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|.*\\..*).*)'],
|
||||
}
|
||||
Reference in New Issue
Block a user