Skip to content

Commit a3e64fe

Browse files
committed
chore(web): enforce dynamic mode and disable revalidation in tRPC route configuration
1 parent 820e237 commit a3e64fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/app/api/trpc/[trpc]/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { appRouter, createContext } from '@repo/api';
22
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';
33
import { headers } from 'next/headers';
44

5+
export const dynamic = 'force-dynamic';
6+
export const revalidate = 0;
57
export const runtime = 'nodejs';
68

79
const handler = (req: Request) =>

0 commit comments

Comments
 (0)