fix: serve uploads via route handler instead of public/ (standalone 404 fix)
Deploy / build-and-deploy (push) Successful in 1m49s
Deploy / build-and-deploy (push) Successful in 1m49s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user