Files
sorsfonalak/services/frontend/src/app/api/version/route.ts
T

8 lines
325 B
TypeScript
Raw Normal View History

// The version this frontend runs (the commit it was built from), for the
// pages' new-version notice (VersionWatcher). null in development.
export const dynamic = "force-dynamic";
export function GET() {
return Response.json({ version: process.env.APP_VERSION || null }, { headers: { "cache-control": "no-store" } });
}