From 953f400de4c14b45c2052bfda217f34e3ec0779f Mon Sep 17 00:00:00 2001 From: Armaan A <49625265+Armster15@users.noreply.github.com> Date: Sun, 7 Apr 2024 13:20:39 -0700 Subject: [PATCH] add typescript type to next api route `config` object --- getting-started/vercel.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getting-started/vercel.md b/getting-started/vercel.md index 563563a4..339c2c89 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")