diff --git a/getting-started/vercel.md b/getting-started/vercel.md index 563563a4..2ea8244e 100644 --- a/getting-started/vercel.md +++ b/getting-started/vercel.md @@ -90,10 +90,11 @@ If you use the Pages Router, Edit `pages/api/[[...route]].ts`. ```ts import { Hono } from 'hono' import { handle } from 'hono/vercel' +import type { PageConfig } from 'next' -export const config = { +export const config: PageConfig = { runtime: "edge", -}; +} const app = new Hono().basePath("/api") @@ -151,8 +152,13 @@ Next, you can utilize the `handle` function imported from `@hono/node-server/ver ```ts import { Hono } from 'hono' import { handle } from '@hono/node-server/vercel' +import type { PageConfig } from 'next' - +export const config: PageConfig = { + api: { + bodyParser: false, + }, +} const app = new Hono().basePath('/api')