WalleGriffkinder commited on
Commit
5e52290
·
verified ·
1 Parent(s): 87dbf53

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -1
index.js CHANGED
@@ -2,7 +2,10 @@ import express from 'express';
2
  import fetch, { Headers as FetchHeaders } from 'node-fetch';
3
 
4
  const app = express();
5
- app.use(express.raw({type: '*/*'}));
 
 
 
6
 
7
  app.options('*', (req, res) => {
8
  const origin = req.headers.origin;
 
2
  import fetch, { Headers as FetchHeaders } from 'node-fetch';
3
 
4
  const app = express();
5
+ app.use(express.raw({
6
+ type: '*/*',
7
+ limit: '100mb' // Увеличен лимит до 100MB
8
+ }));
9
 
10
  app.options('*', (req, res) => {
11
  const origin = req.headers.origin;