diff --git a/examples/next-js/src/app/api/rivet/[...all]/route.ts b/examples/next-js/src/app/api/rivet/[...all]/route.ts index 59206e37a..a9ebd3e0a 100644 --- a/examples/next-js/src/app/api/rivet/[...all]/route.ts +++ b/examples/next-js/src/app/api/rivet/[...all]/route.ts @@ -1,6 +1,6 @@ import { toNextHandler } from "@rivetkit/next-js"; import { registry } from "@/rivet/registry"; -export const maxDuration = 60; +export const maxDuration = 300; export const { GET, POST, PUT, PATCH, HEAD, OPTIONS } = toNextHandler(registry); diff --git a/examples/next-js/vercel.json b/examples/next-js/vercel.json deleted file mode 100644 index 5d4ab86ec..000000000 --- a/examples/next-js/vercel.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "fluid": false -} diff --git a/packages/next-js/src/mod.ts b/packages/next-js/src/mod.ts index 02f6e5789..ad8172ea6 100644 --- a/packages/next-js/src/mod.ts +++ b/packages/next-js/src/mod.ts @@ -29,6 +29,10 @@ export const toNextHandler = ( inputConfig.runEngine = true; inputConfig.autoConfigureServerless = { url: `${publicUrl}/api/rivet`, + minRunners: 0, + maxRunners: 100_000, + requestLifespan: 300, + slotsPerRunner: 1, }; } else { logger().debug(