fix: bypass auth checking for backend
Build and Push Image / docker (push) Successful in 2h39m40s

This commit is contained in:
2026-05-04 16:51:50 +07:00 Unverified
parent d51eff1dab
commit 81e23eb947
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -29,7 +29,11 @@ export const auth = betterAuth({
export async function adminCheck() {
"use server";
if (env.NO_AUTH_CHECK) return null;
if (env.NO_AUTH_CHECK)
return {
email: "bypass@localhost",
name: "[email protected]",
} satisfies Partial<typeof auth.$Infer.Session.user>;
const head = await headers();