Remove annoying nginx logging, fix amber sync, minor patches

This commit is contained in:
Dreamgineer
2026-01-17 21:04:11 +07:00 Unverified
parent 89190434cf
commit af1638b897
6 changed files with 20 additions and 9 deletions
+3 -1
View File
@@ -305,7 +305,9 @@ export async function actionLog(text: string, details?: unknown) {
return [];
});
revalidatePath("/admin/log");
try {
revalidatePath("/admin/log");
} catch { }
if (res) ps.publish(res, { topic: "log" });
}
+3
View File
@@ -1,3 +1,4 @@
import { env } from "node:process";
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { admin } from "better-auth/plugins";
@@ -27,6 +28,8 @@ export const auth = betterAuth({
export async function adminCheck() {
"use server";
if (env.NO_AUTH_CHECK) return null;
const session = await auth.api.getSession({
headers: await headers(),
});