import type { VercelRequest , VercelResponse } from '@vercel/node' ; import { createApp } from './app' ; const app = createApp ( ) ; export default async function ( req , res ) { await app . ready ( ) ; app . server . emit ( 'request' , req , res ) ; }