From db3b89309db06900c09a1c0434fd6380fea0a0c3 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 29 Apr 2024 10:55:02 -0500 Subject: [PATCH] Force public API to be dynamic --- src/app/api/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/api/route.ts b/src/app/api/route.ts index 19484bd4..a3c74dc5 100644 --- a/src/app/api/route.ts +++ b/src/app/api/route.ts @@ -6,6 +6,8 @@ import { SITE_TITLE, } from '@/site/config'; +export const dynamic = 'force-dynamic'; + export async function GET() { if (PUBLIC_API_ENABLED) { const photos = await getPhotosCached({ limit: API_PHOTO_REQUEST_LIMIT });