fix: memory leak while downloading large files

This commit is contained in:
Elias Schneider
2023-10-09 11:14:51 +02:00
parent 38919003e9
commit 97e7d7190d
7 changed files with 53 additions and 16 deletions

View File

@@ -11,6 +11,8 @@ export const config = {
const { apiURL } = getConfig().serverRuntimeConfig;
// A proxy to the API server only used in development.
// In production this route gets overridden by nginx.
export default (req: NextApiRequest, res: NextApiResponse) => {
httpProxyMiddleware(req, res, {
headers: {