Merge branch origin/copilot/fix-deployment-configuration into main

This commit is contained in:
Alexa Amundson
2025-11-25 13:35:59 -06:00
3 changed files with 13 additions and 2 deletions

View File

@@ -3,7 +3,13 @@ import { NextResponse } from 'next/server';
const startTime = Date.now(); const startTime = Date.now();
export const runtime = 'edge'; export const runtime = 'edge';
const SERVICE_NAME = process.env.SERVICE_NAME ?? 'blackroad-prism-console';
export async function GET() { export async function GET() {
const uptime = Math.round((Date.now() - startTime) / 1000); const uptime = Math.round((Date.now() - startTime) / 1000);
return NextResponse.json({ status: 'ok', uptime }); return NextResponse.json({
status: 'ok',
service: SERVICE_NAME,
uptime
});
} }

View File

@@ -5,6 +5,10 @@ builder = "NIXPACKS"
startCommand = "pnpm start" startCommand = "pnpm start"
healthcheckPath = "/api/health" healthcheckPath = "/api/health"
healthcheckTimeout = 30 healthcheckTimeout = 30
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 5
[variables] [variables]
SERVICE_NAME = "blackroad-prism-console"
PORT = "3000" PORT = "3000"
ENVIRONMENT = "production"

View File

@@ -42,6 +42,7 @@
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"tests/**/*.setup.ts" "tests/**/*.setup.ts",
"frontend/**/*"
] ]
} }