fix: upload limit 500MB, mount all public dirs in docker
Deploy to VPS / deploy (push) Has been cancelled
Deploy to VPS / deploy (push) Has been cancelled
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user