Skip to content

Commit f8e7b2a

Browse files
committed
chore(site): fix timeout in next examples
1 parent 62152a5 commit f8e7b2a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

site/src/content/docs/actors/quickstart/next-js.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Create a file at `src/app/api/rivet/[...all]/route.ts` to setup the API routes:
5454
import { toNextHandler } from "@rivetkit/next-js";
5555
import { registry } from "@/rivet/registry";
5656

57+
export const maxDuration = 300;
58+
5759
export const { GET, POST, PUT, PATCH, HEAD, OPTIONS } = toNextHandler(registry);
5860
```
5961

site/src/content/docs/integrations/next-js.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export const registry = setup({
5757
import { toNextHandler } from "@rivetkit/next-js";
5858
import { registry } from "@/rivet/registry";
5959

60+
export const maxDuration = 300;
61+
6062
// Export the Next.js handler for the API routes
6163
export const { GET, POST, HEAD, PATCH, OPTIONS } = toNextHandler(registry);
6264
```
@@ -84,6 +86,8 @@ const registry = setup({
8486
use: { counter },
8587
});
8688

89+
export const maxDuration = 300;
90+
8791
export const { GET, POST, HEAD, PATCH, OPTIONS } = toNextHandler(registry);
8892
```
8993

0 commit comments

Comments
 (0)