Skip to content

Commit

Permalink
fix: remove response limit
Browse files Browse the repository at this point in the history
  • Loading branch information
stats.fm Team committed Jul 8, 2024
1 parent ffff603 commit 6bf1609
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/api/image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NextApiRequest, NextApiResponse } from 'next';
import type { NextApiRequest, NextApiResponse, PageConfig } from 'next';
import { cpus } from 'os';
import sharp from 'sharp';
import { URL } from 'url';
Expand Down Expand Up @@ -397,3 +397,9 @@ export default async function handler(
throw error;
}
}

export const config = {
api: {
responseLimit: false,
},
} satisfies PageConfig;

0 comments on commit 6bf1609

Please sign in to comment.