Menu

Node.js Vercel Functions now support fetch web handlers - Vercel
📰
0

Node.js Vercel Functions now support fetch web handlers - Vercel

Vercel News·Tom Lienard·4 days ago
#hOL9aktU
#vercel#fetch#handlers#export#request#photo
Reading 0:00
15s threshold

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.

Read More