Skip to content

Commit 6cc2196

Browse files
committed
fix(api): mark auth stats/settings routes as dynamic
1 parent 2d5dc85 commit 6cc2196

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/api/settings/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*/
77

88
import { type NextRequest } from 'next/server';
9+
10+
export const dynamic = 'force-dynamic';
911
import { getServiceClient } from '@/lib/supabase';
1012
import { verifyUser } from '@/lib/api-utils';
1113
import { jsonSuccess, jsonError, jsonUnauthorized, handleError, HTTP_STATUS } from '@/lib/api';

app/api/stats/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66

77
import { type NextRequest } from 'next/server';
8+
9+
export const dynamic = 'force-dynamic';
810
import { getServiceClient } from '@/lib/supabase';
911
import { verifyUser } from '@/lib/api-utils';
1012
import { jsonSuccess, jsonError, jsonUnauthorized, handleError, HTTP_STATUS } from '@/lib/api';

0 commit comments

Comments
 (0)