Files
Pien-Studio/apps/web/app/api/commit-hash/route.ts
T
2026-05-16 11:53:50 +07:00

7 lines
223 B
TypeScript

import { NextResponse } from "next/server";
import { execSync } from "child_process";
export function GET() {
const hash = execSync("git rev-parse --short HEAD").toString().trim();
return NextResponse.json({ hash });
}