diff --git a/README.md b/README.md index 9b8d1c8..4f6cdfc 100644 --- a/README.md +++ b/README.md @@ -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"}` diff --git a/app/api/health/route.ts b/app/health/route.ts similarity index 100% rename from app/api/health/route.ts rename to app/health/route.ts diff --git a/docker-compose.yml b/docker-compose.yml index 41d5db5..3fe3e22 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/middleware.ts b/middleware.ts index adf380c..0d06504 100644 --- a/middleware.ts +++ b/middleware.ts @@ -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).*)", ], };