Merge branch origin/copilot/fix-deployment-configuration into main
This commit is contained in:
@@ -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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"tests/**/*.setup.ts"
|
"tests/**/*.setup.ts",
|
||||||
|
"frontend/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user