mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
When an edge function has no response during `vc dev`, we were seeing an unhelpful error message: > The event listener did not respond. Now, we'll see a much more specific error message: > Unhandled rejection: Edge Function "api/edge-no-response.ts" did not return a response. > Error! Failed to complete request to /api/edge-no-response: Error: socket hang up
8 lines
137 B
JavaScript
8 lines
137 B
JavaScript
export const config = {
|
|
runtime: 'experimental-edge',
|
|
};
|
|
|
|
export default async function edge(request, event) {
|
|
// nothing returned
|
|
}
|