refactor: move healthcheck to /health and exclude from i18n
This commit is contained in:
@@ -129,7 +129,7 @@ volumes:
|
||||
|
||||
Die App stellt einen einfachen Healthcheck-Endpoint bereit, der von Docker oder externen Monitoring-Tools genutzt werden kann:
|
||||
|
||||
- **Endpoint**: `/api/health`
|
||||
- **Endpoint**: `/health`
|
||||
- **Method**: `GET`
|
||||
- **Response**: `200 OK` `{"status":"ok"}`
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
- ./public/uploads:/app/public/uploads
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health" ]
|
||||
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
@@ -27,6 +27,6 @@ export function middleware(request: NextRequest) {
|
||||
export const config = {
|
||||
matcher: [
|
||||
// Skip all internal paths (_next)
|
||||
"/((?!_next|api|public|manifest|icon|file|globe|next|vercel|window|push-sw.js|sw.js|workbox).*)",
|
||||
"/((?!_next|api|public|manifest|icon|file|globe|next|vercel|window|push-sw.js|sw.js|workbox|health).*)",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user