diff --git a/packages/builders/src/utils/access-log/handler.ts b/packages/builders/src/utils/access-log/handler.ts index 9ef10bea4..64fe013bb 100644 --- a/packages/builders/src/utils/access-log/handler.ts +++ b/packages/builders/src/utils/access-log/handler.ts @@ -1,5 +1,5 @@ import { findAdmin, updateAdmin } from "@/server/services/admin"; -import { paths } from "@/server/constants"; +import { IS_CLOUD, paths } from "@/server/constants"; import { type RotatingFileStream, createStream } from "rotating-file-stream"; import { execAsync } from "../process/execAsync"; @@ -8,6 +8,9 @@ class LogRotationManager { private stream: RotatingFileStream | null = null; private constructor() { + if (IS_CLOUD) { + return; + } this.initialize().catch(console.error); }