fix: serve uploads via route handler instead of public/ (standalone 404 fix)
Deploy / build-and-deploy (push) Successful in 1m49s

This commit is contained in:
2026-06-15 03:34:11 +03:00
parent 3f41d7699c
commit cfcfa0ccee
7 changed files with 55 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import path from "path";
import { v4 as uuidv4 } from "uuid";
import { eq } from "drizzle-orm";
const UPLOAD_DIR = path.join(process.cwd(), "public", "uploads", "images");
const UPLOAD_DIR = path.join(process.cwd(), "data", "uploads", "images");
const ALLOWED_TYPES = ["image/png", "image/jpeg", "image/gif", "image/webp"];
const MAX_SIZE = 5 * 1024 * 1024;