From 5c5b92b84a7113e6de93c83d7f5e0612b1c03be2 Mon Sep 17 00:00:00 2001 From: Moinul Moin Date: Thu, 11 Jul 2024 21:50:23 +0600 Subject: [PATCH] fix: :bug: trying to fix ut callback failling --- src/app/api/uploadthing/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/uploadthing/route.ts b/src/app/api/uploadthing/route.ts index 2c4640a..ff1bb91 100644 --- a/src/app/api/uploadthing/route.ts +++ b/src/app/api/uploadthing/route.ts @@ -1,7 +1,8 @@ import { createRouteHandler } from "uploadthing/next"; - import { ourFileRouter } from "./core"; +export const runtime = "nodejs"; + // Export routes for Next App Router export const { GET, POST } = createRouteHandler({ router: ourFileRouter,