fix: increase Socket.IO maxHttpBufferSize to 300MB to support larger drafting payloads and prevent 413 errors.

This commit is contained in:
2025-12-17 15:33:02 +01:00
parent 4ff2eb0ef0
commit e5750d9729
3 changed files with 14 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ const __dirname = path.dirname(__filename);
const app = express();
const httpServer = createServer(app);
const io = new Server(httpServer, {
maxHttpBufferSize: 300 * 1024 * 1024, // 300MB
cors: {
origin: "*", // Adjust for production,
methods: ["GET", "POST"]