Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

require('dotenv').config();

const SITES_UPLOAD_BODY_LIMIT_BYTES = 200 * 1000 * 1000;

module.exports = {
experimental: {
middlewareClientMaxBodySize: SITES_UPLOAD_BODY_LIMIT_BYTES,
},
serverExternalPackages: [
'@kubernetes/client-node',
'@octokit/core',
Expand Down
8 changes: 8 additions & 0 deletions next.config.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const nextConfig = require('./next.config');

describe('next config', () => {
it('allows multipart uploads larger than the default request body clone limit', () => {
expect(nextConfig.experimental?.middlewareClientMaxBodySize).toBe(200 * 1000 * 1000);
expect(nextConfig.experimental?.middlewareClientMaxBodySize).toBeGreaterThan(10 * 1024 * 1024);
});
});
Loading