We use the custom origins to map the old api while moving to NextJs which contain some old endoints which need a higher timeout, at this moment we cant use the serverless config to set this since its hardcoded to 30.
for example:
cloudfront:
origins:
- url: https://url/
originReadTimeout: 60
pathPatterns:
/old-api/*:
allowedHttpMethods: [GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE]
We use the custom origins to map the old api while moving to NextJs which contain some old endoints which need a higher timeout, at this moment we cant use the serverless config to set this since its hardcoded to 30.
aws-cloudfront/lib/getOriginConfig.js
Line 36 in 6f15e07
for example: