Skip to content

Commit 36ab629

Browse files
perf(storage): cache for an hour
1 parent 7847573 commit 36ab629

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/api/internal/storage/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { GetStorageInfo } from "@/actions/files";
44

55
export const runtime = "nodejs";
66

7+
export const revalidate = 3600;
8+
export const dynamic = "force-static";
9+
710
export async function GET() {
811
try {
912
const result = await GetStorageInfo();

0 commit comments

Comments
 (0)