Remove annoying nginx logging, fix amber sync, minor patches
This commit is contained in:
+3
-1
@@ -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" });
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user