You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Following the docs in the Readme there is a section about how to set the ttl
myNextApplication:
component: serverless-next.js
inputs:
cloudfront:
# this is the cache behaviour for next.js api pages
api:
ttl: 10
Cloudfront actually has the options for setting min, max, and default ttl times in the UI:
How would I go about setting the Max TTL only to 31536000?
It seems this was supposed to be fixed in PR #282 since it enables "all cloudfront inputs" but these are missing. Looking through the code, it seems to be a limitation in aws-cloudfront inputs