Files
Pien-Studio/apps/web/app/api/commit-hash/route.ts
T

7 lines
223 B
TypeScript
Raw Normal View History

2026-05-16 11:51:11 +07:00
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 });
}