fix(frontend): declare admin users runtime locally
Staging Backend Quality Gate / validate (push) Successful in 16m8s
Staging Backend Quality Gate / publish (push) Successful in 12m59s

This commit is contained in:
Jesse_Chen
2026-08-06 21:20:12 +08:00
parent de2caf6249
commit 9a3d0d440f
3 changed files with 19 additions and 2 deletions
+3 -1
View File
@@ -1 +1,3 @@
export { DELETE, GET, PATCH, POST, PUT, runtime } from "../customers/route";
export const runtime = "nodejs";
export { DELETE, GET, PATCH, POST, PUT } from "../customers/route";
+3 -1
View File
@@ -39,5 +39,7 @@ test("admin_users migration is service-role-only and auditable", () => {
});
test("legacy admin users route aliases the guarded customer resource", () => {
assert.match(usersSource, /export \{ DELETE, GET, PATCH, POST, PUT, runtime \} from "\.\.\/customers\/route"/);
assert.match(usersSource, /export const runtime = "nodejs"/);
assert.match(usersSource, /export \{ DELETE, GET, PATCH, POST, PUT \} from "\.\.\/customers\/route"/);
assert.doesNotMatch(usersSource, /export \{[^}]*\bruntime\b[^}]*\} from/);
});