feat: Add health check endpoint for network status detection
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled

Created /api/health endpoint that returns 200 OK to allow Redux
network detection middleware to properly check connectivity status.

Without this endpoint, the app was showing as offline even when
connected to the internet.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-01 19:44:42 +00:00
parent 50bde54c8e
commit 78aef1d918

View File

@@ -0,0 +1,13 @@
import { NextResponse } from 'next/server';
/**
* Health check endpoint for network status detection
* Returns 200 OK when the app is reachable
*/
export async function GET() {
return NextResponse.json({ status: 'ok', timestamp: new Date().toISOString() });
}
export async function HEAD() {
return new NextResponse(null, { status: 200 });
}