lets break commit name rule for no reason
Build and Push Image / push (push) Has been cancelled
Build and Push Image / build-frontend (push) Has been cancelled
Build and Push Image / build-backend (push) Has been cancelled

fix: mutation forms are cached with same form key
fix: change amber from commad
This commit is contained in:
2026-08-27 19:59:41 +07:00 Unverified
parent 6245927c47
commit d3dccdf89c
7 changed files with 25 additions and 18 deletions
+6 -8
View File
@@ -1,15 +1,13 @@
import { exec } from "node:child_process";
import { env } from "node:process";
import { promisify } from "node:util";
import { actionLog } from "@/lib/api";
import { adminCheck } from "@/lib/auth";
import { syncAmber } from "@/util/sync";
export async function GET() {
if (!(await adminCheck()))
return new Response("Unauthorized", { status: 401 });
const res = await promisify(exec)("bun util/sync 2>&1", {
env: { ...env, NO_AUTH_CHECK: "1" },
});
await actionLog("Triggered an Amber sync from API", { result: res.stdout });
return new Response(res.stdout);
await syncAmber();
await actionLog("Triggered an Amber sync from API");
return new Response(
"OK(log is wip, check `kubectl logs -fn buzz deployments/app`)",
);
}