1 min read
Vercel Functions running on the Node.js runtime now support the fetch
web handlers, improving interoperability across JavaScript runtimes and frameworks.
export default { fetch(request: Request) { return new Response('Hello from Vercel!'); }};
You can still export individual HTTP methods, if preferred.
Learn more about fetch web handlers in the docs.