Increase file response limit

This commit is contained in:
Lee 2022-11-15 04:50:17 +00:00
parent c4f930b067
commit 60fd58b5bb
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

View File

@ -18,3 +18,9 @@ export default async function handler(req, res) {
res.setHeader("Content-Type", file.contentType); // Set the content type header
readStream.pipe(res); // Send the file to the client
}
export const config = {
api: {
responseLimit: "1gb", // Limit the response size (the file)
},
};