diff --git a/next.config.js b/next.config.js index 4220af4f..8ebb2244 100644 --- a/next.config.js +++ b/next.config.js @@ -83,6 +83,15 @@ module.exports = withBundleAnalyzer({ }, ], }, + { + source: "/api/:path*", + headers: [ + { + key: "Cache-Control", + value: "s-maxage=1, stale-while-revalidate", + }, + ], + }, ] }, staticPageGenerationTimeout: 3600,