increase express JSON body parsing limit to 50mb
This commit is contained in:
parent
6435a014c3
commit
4ba5f3f804
@ -16,6 +16,7 @@ const PORT = process.env.PORT || 3000;
|
|||||||
|
|
||||||
// Middleware to capture raw body for Shopify webhook HMAC verification
|
// Middleware to capture raw body for Shopify webhook HMAC verification
|
||||||
app.use(express.json({
|
app.use(express.json({
|
||||||
|
limit: '50mb',
|
||||||
verify: (req, res, buf) => {
|
verify: (req, res, buf) => {
|
||||||
req.rawBody = buf;
|
req.rawBody = buf;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user