Increase upload payload limits to 500MB to fix 413 error
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ const { db, run, get, all } = require('./database');
|
||||
|
||||
const app = express();
|
||||
app.use(cors());
|
||||
app.use(express.json({ limit: '100mb' }));
|
||||
app.use(express.json({ limit: '500mb' }));
|
||||
app.use(express.urlencoded({ limit: '500mb', extended: true }));
|
||||
|
||||
const JWT_SECRET = 'viz-3d-local-secret-key-1234';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user