From 5e674d2299098063fed1fffda764a8f2f4e861bb Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 4 Jun 2024 20:49:05 -0700 Subject: [PATCH] Dynamic won't be required from Next 15 --- app/api/trpc-node/[trpc]/route.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/trpc-node/[trpc]/route.ts b/app/api/trpc-node/[trpc]/route.ts index 6a8f539b2..2a98d80c5 100644 --- a/app/api/trpc-node/[trpc]/route.ts +++ b/app/api/trpc-node/[trpc]/route.ts @@ -15,9 +15,11 @@ const handlerNodeRoutes = (req: Request) => : undefined, }); -export const runtime = 'nodejs'; + // NOTE: the following statement breaks the build on non-pro deployments, and conditionals don't work either // so we resorted to raising the timeout from 10s to 25s in the vercel.json file instead // export const maxDuration = 25; + +export const runtime = 'nodejs'; export const dynamic = 'force-dynamic'; export { handlerNodeRoutes as GET, handlerNodeRoutes as POST }; \ No newline at end of file