Skip to content

Commit 81bfb7a

Browse files
committed
Increase allowable request length
When sending geometry as input, the default 1mb request limit isn't enough!
1 parent 0b1664b commit 81bfb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const app = express()
1111
if(process.env.NODE_ENV !== 'production')
1212
app.use(logger('dev'))
1313

14-
app.use(express.json())
14+
app.use(express.json({limit: '10mb'}))
1515
app.use(express.urlencoded({ extended: false }))
1616
app.use(cors())
1717
app.use(compression())

0 commit comments

Comments
 (0)