We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e4db6d commit ffb792dCopy full SHA for ffb792d
1 file changed
apps/site/app/api/site.json/route.ts
@@ -2,6 +2,11 @@ import { NextResponse } from 'next/server';
2
3
import { siteConfig } from '#site/next.json.mjs';
4
5
-export const GET = () => NextResponse.json(siteConfig);
+export const GET = () =>
6
+ NextResponse.json(siteConfig, {
7
+ headers: {
8
+ 'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
9
+ },
10
+ });
11
12
export const dynamic = 'force-static';
0 commit comments