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
@@ -9,7 +9,7 @@ import { convertToCompressedMp3 } from "@/lib/convert";
export const maxDuration = 60;
const UPLOAD_DIR = path.join(process.cwd(), "public", "uploads", "sounds");
const UPLOAD_DIR = path.join(process.cwd(), "data", "uploads", "sounds");
const ALLOWED_EXTENSIONS = /\.(mp3|ogg|wav|flac|aac|m4a|wma|opus|webm|mp4|avi|mov|mkv|webm|wmv|flv)$/i;
const MAX_SIZE = 50 * 1024 * 1024; // 50 MB