Dynamic won't be required from Next 15

This commit is contained in:
Enrico Ros
2024-06-04 20:49:05 -07:00
parent 06f5b6d6ff
commit 5e674d2299
+3 -1
View File
@@ -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 };