A4: app shell (layout, nav, tokens, error/empty states, /api/health)
Fixes the A4 blocker: /api/dev/complete now establishes the Auth.js session. Root cause was UntrustedHost (trustHost defaulted false in pnpm start / production because setEnvDefaults derives it from AUTH_URL, not NEXTAUTH_URL, and assertConfig checks it before that default applies). Added trustHost: true to the auth config; rebuilt. Complete response now sets authjs.session-token, /schedule returns 200, and all 4 e2e shell tests pass. Also ignores test-results/ artifacts.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
/**
|
||||
* Liveness probe for the reverse proxy / cron worker. Cheap, no DB, no auth.
|
||||
* The cron worker's heartbeat is a separate concern (G3); this just answers
|
||||
* "is this process up?".
|
||||
*/
|
||||
export const GET = async () => {
|
||||
return NextResponse.json({
|
||||
status: "ok",
|
||||
time: new Date().toISOString(),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user