fix: upload limit 500MB, mount all public dirs in docker
Deploy to VPS / deploy (push) Has been cancelled

This commit is contained in:
2026-04-08 15:56:56 +00:00
parent 0118774e31
commit 3c20ce5c37
72 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ export async function POST(request: NextRequest) {
if (!ALL_EXTENSIONS.includes(ext)) {
return NextResponse.json({ error: `Type "${ext}" not allowed. Accepted: ${ALL_EXTENSIONS.join(", ")}` }, { status: 400 });
}
if (file.size > 50 * 1024 * 1024) {
return NextResponse.json({ error: "File exceeds 50MB limit" }, { status: 400 });
if (file.size > 500 * 1024 * 1024) {
return NextResponse.json({ error: "File exceeds 500MB limit" }, { status: 400 });
}
const dirPath = buildSafePath(scope, slug, subPath);