refactor: move healthcheck to /health and exclude from i18n

This commit is contained in:
2026-01-13 15:27:05 +01:00
parent bf2d939efe
commit b28fadb684
4 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ volumes:
Die App stellt einen einfachen Healthcheck-Endpoint bereit, der von Docker oder externen Monitoring-Tools genutzt werden kann: 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` - **Method**: `GET`
- **Response**: `200 OK` `{"status":"ok"}` - **Response**: `200 OK` `{"status":"ok"}`

View File

@@ -10,7 +10,7 @@ services:
- ./public/uploads:/app/public/uploads - ./public/uploads:/app/public/uploads
restart: always restart: always
healthcheck: 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 interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3

View File

@@ -27,6 +27,6 @@ export function middleware(request: NextRequest) {
export const config = { export const config = {
matcher: [ matcher: [
// Skip all internal paths (_next) // 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).*)",
], ],
}; };