Skip to content

Commit e6ea6fb

Browse files
committed
Increase response size limit for /api/download
1 parent 26d1bdc commit e6ea6fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pages/api/download.ts

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ type FileSystemNode = {
1616
[key: string]: string | FileSystemNode;
1717
};
1818

19+
export const config = {
20+
api: {
21+
responseLimit: '15mb',
22+
},
23+
};
24+
1925
export default async (req: NextApiRequest, res: NextApiResponse) => {
2026
let apiVersion: number | null;
2127
if (

0 commit comments

Comments
 (0)