From 24f14e9342397dbb7963e629b4ea19dc7d738896 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sun, 2 Aug 2026 18:28:47 +0700 Subject: [PATCH] fix(worker): decouple database runtime from next --- Dockerfile | 3 ++- db/index.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0aa861d..59e2f82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ EXPOSE 3000 CMD ["bun", "start"] # Stage 4: Scheduled video upload worker -FROM builder AS video-upload-worker +FROM deps AS video-upload-worker +COPY . . COPY scripts/video-upload-crontab /etc/crontabs/root ENTRYPOINT ["crond", "-f", "-l", "2", "-L", "/dev/stdout"] diff --git a/db/index.ts b/db/index.ts index c71c323..c10f7fa 100644 --- a/db/index.ts +++ b/db/index.ts @@ -1,4 +1,3 @@ -import "server-only"; import { drizzle } from "drizzle-orm/postgres-js"; import postgres from "postgres"; import * as schema from "./schema";