#Increase body parser limit for create products endpoint
2 messages · Page 1 of 1 (latest)
Hey @wanton lava
Taken from official documentation
import { defineMiddlewares } from "@medusajs/framework/http"
export default defineMiddlewares({
routes: [
{
method: ["POST"],
bodyParser: { sizeLimit: "2mb" },
matcher: "/custom",
},
],
})
For more reference :
https://docs.medusajs.com/learn/fundamentals/api-routes/parse-body#configure-request-body-size-limit