Skip to content

Commit

Permalink
最低5分はキャッシュする
Browse files Browse the repository at this point in the history
  • Loading branch information
takecchi committed Dec 19, 2023
1 parent 02ef9e7 commit f91f57e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
// CloudFrontでキャッシュさせたい場合に使用すること
const serverCachePolicy = new CachePolicy(stack, 'ServerCache', {
...NextjsSite.buildDefaultServerCachePolicyProps(),
minTtl: Duration.seconds(300),
defaultTtl: Duration.seconds(300),
});
const site = new NextjsSite(stack, 'site', {
Expand Down

0 comments on commit f91f57e

Please sign in to comment.