Skip to content

Commit 3e5a70b

Browse files
fix: swap NextRequest for Request
1 parent 89bc92d commit 3e5a70b

File tree

1 file changed

+2
-4
lines changed
  • apps/dojo/src/app/api/copilotkit/[integrationId]/[[...slug]]

1 file changed

+2
-4
lines changed

apps/dojo/src/app/api/copilotkit/[integrationId]/[[...slug]]/route.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import {
44
copilotRuntimeNextJSAppRouterEndpoint,
55
} from "@copilotkit/runtime";
66
import { agentsIntegrations } from "@/agents";
7-
import { handle } from 'hono/vercel'
8-
9-
import { NextRequest } from "next/server";
7+
import { handle } from 'hono/vercel';
108

119
async function createApp(integrationId: string) {
1210
const integration = agentsIntegrations.find((i) => i.id === integrationId);
@@ -28,7 +26,7 @@ async function createApp(integrationId: string) {
2826
}
2927

3028
async function routeHandler(
31-
request: NextRequest,
29+
request: Request,
3230
{ params }: { params: Promise<{ integrationId: string }> }
3331
) {
3432
const { integrationId } = await params;

0 commit comments

Comments
 (0)