mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(runtime): harden process startup and health
This commit is contained in:
1 parent
914e7658db
commit
9adeb8fc19
16 files changed
+653
-275
No files matched your search
+1
-1
@@ -194,7 +194,7 @@ export function proxy(request: NextRequest) {
|
||||
// Worker-only container: refuse HTTP traffic with a clear hint instead of
|
||||
// serving requests that would either crash (no DB pool ready for writes from
|
||||
// the worker) or duplicate work that the dedicated web container is doing.
|
||||
if (!shouldRunWeb()) {
|
||||
if (!shouldRunWeb() && pathname !== "/api/health") {
|
||||
return NextResponse.json(
|
||||
{
|
||||
data: null,
|
||||
|
||||
Reference in new issue
Block a user