Increase file response limit
This commit is contained in:
parent
c4f930b067
commit
60fd58b5bb
@ -18,3 +18,9 @@ export default async function handler(req, res) {
|
|||||||
res.setHeader("Content-Type", file.contentType); // Set the content type header
|
res.setHeader("Content-Type", file.contentType); // Set the content type header
|
||||||
readStream.pipe(res); // Send the file to the client
|
readStream.pipe(res); // Send the file to the client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
api: {
|
||||||
|
responseLimit: "1gb", // Limit the response size (the file)
|
||||||
|
},
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user