We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 058819a commit 67c396bCopy full SHA for 67c396b
src/core/dev-server/proxy.ts
@@ -33,6 +33,7 @@ export function createHTTPProxy(defaults: ProxyServerOptions = {}): HTTPProxy {
33
34
const handleEvent = async (event: H3Event, opts: ProxyServerOptions = {}) => {
35
try {
36
+ event._handled = true;
37
await proxy.web(event.node.req, event.node.res, opts);
38
} catch (error: any) {
39
if (error?.code !== "ECONNRESET") {
src/core/dev-server/worker.ts
@@ -59,7 +59,6 @@ export class NodeDevWorker implements DevWorker {
59
statusText: "Dev worker is unavailable",
60
});
61
}
62
- event._handled = true;
63
await this.#proxy.handleEvent(event, { target: this.#address });
64
65
0 commit comments