Skip to content

Commit

Permalink
add typescript type to next api route config object
Browse files Browse the repository at this point in the history
  • Loading branch information
Armster15 authored Apr 7, 2024
1 parent 3879f1e commit 953f400
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions getting-started/vercel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 953f400

Please sign in to comment.