Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 726dcc0

Browse files
authored
chore(next-js): enable fluid (#1404)
1 parent 2200723 commit 726dcc0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { toNextHandler } from "@rivetkit/next-js";
22
import { registry } from "@/rivet/registry";
33

4-
export const maxDuration = 60;
4+
export const maxDuration = 300;
55

66
export const { GET, POST, PUT, PATCH, HEAD, OPTIONS } = toNextHandler(registry);

examples/next-js/vercel.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/next-js/src/mod.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export const toNextHandler = (
2929
inputConfig.runEngine = true;
3030
inputConfig.autoConfigureServerless = {
3131
url: `${publicUrl}/api/rivet`,
32+
minRunners: 0,
33+
maxRunners: 100_000,
34+
requestLifespan: 300,
35+
slotsPerRunner: 1,
3236
};
3337
} else {
3438
logger().debug(

0 commit comments

Comments
 (0)