mirror of
https://github.com/YuzuZensai/Pien-Studio.git
synced 2026-09-02 14:18:35 +00:00
✨ feat: ui commit hash versioning
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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 });
|
||||
}
|
||||
Reference in New Issue
Block a user