chore: /api/health reports version + platformAi (v0.3.1)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XStQKxPfEjrTvWo83KFCxG
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "names-poweredbyotm",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --port 3000",
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
// Deploy verification target: the platform's list_apps can lie about what's
|
||||
// running, so a deploy is confirmed by the version THIS container serves.
|
||||
import { VERSION } from "@/lib/version";
|
||||
import { platformAiEnabled } from "@/lib/session";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export function GET() {
|
||||
return Response.json({ ok: true, service: "names" });
|
||||
return Response.json({ ok: true, service: "names", version: VERSION, platformAi: platformAiEnabled() });
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// /changelog. Bump VERSION and prepend an entry when shipping a user-facing
|
||||
// change. Same convention as rpo.
|
||||
|
||||
export const VERSION = "0.3.0";
|
||||
export const VERSION = "0.3.1";
|
||||
|
||||
export interface ChangelogEntry {
|
||||
version: string;
|
||||
@@ -11,6 +11,11 @@ export interface ChangelogEntry {
|
||||
}
|
||||
|
||||
export const CHANGELOG: ChangelogEntry[] = [
|
||||
{
|
||||
version: "0.3.1",
|
||||
date: "2026-08-16",
|
||||
changes: ["/api/health now reports the running version (and whether platform AI is wired), so a deploy can be verified against the live site."],
|
||||
},
|
||||
{
|
||||
version: "0.3.0",
|
||||
date: "2026-08-16",
|
||||
|
||||
Reference in New Issue
Block a user