You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/25-build-and-deploy/40-adapter-node.md
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -263,3 +263,49 @@ app.listen(3000, () => {
263
263
console.log('listening on port 3000');
264
264
});
265
265
```
266
+
267
+
## Aborted requests
268
+
269
+
> [!NOTE] This feature is available in `vite dev` and `vite preview` servers.
270
+
271
+
The adapter will fire an `abort` event when the incoming request is cancelled before completion. You can access the [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) via `event.request.signal`.
272
+
273
+
A pretty typical example of using the `signal` property:
0 commit comments