Skip to content
Dashboard

Node.js Vercel Functions now support fetch web handlers

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.