From 8c34bd29640a176eb1f1b07418e3f77871ad5d32 Mon Sep 17 00:00:00 2001 From: Luis Alvarez D Date: Sat, 26 Mar 2022 15:31:32 -0500 Subject: [PATCH 1/2] Update middleware examples list Logging and analytics are not provided in vercel/examples using middleware. --- docs/middleware.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/middleware.md b/docs/middleware.md index d204f99a6c4d..b3dfc1bffb67 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -71,9 +71,7 @@ Middleware can be used for anything that shares logic for a set of pages, includ - [Redirects and rewrites](https://github.com/vercel/examples/tree/main/edge-functions) - [Handling unsupported browsers](https://github.com/vercel/examples/tree/main/edge-functions) - [Feature flags and A/B tests](https://github.com/vercel/examples/tree/main/edge-functions) -- [Server-side analytics](https://github.com/vercel/examples/tree/main/edge-functions) - [Advanced i18n routing requirements](https://github.com/vercel/examples/tree/main/edge-functions) -- [Logging](https://github.com/vercel/examples/tree/main/edge-functions) ## Execution Order From 80cc5381f5af4285afd518b6373efe31620930b8 Mon Sep 17 00:00:00 2001 From: LFades Date: Sat, 26 Mar 2022 15:34:54 -0500 Subject: [PATCH 2/2] Remove example use case --- docs/api-reference/next/server.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/api-reference/next/server.md b/docs/api-reference/next/server.md index 0d42e941acb5..d9139858801c 100644 --- a/docs/api-reference/next/server.md +++ b/docs/api-reference/next/server.md @@ -55,8 +55,6 @@ The `NextFetchEvent` object extends the native [`FetchEvent`](https://developer. The `waitUntil()` method can be used to prolong the execution of the function, after the response has been sent. In practice this means that you can send a response, then continue the function execution if you have other background work to make. -An example of _why_ you would use `waitUntil()` is integrations with logging tools such as [Sentry](https://sentry.io) or [DataDog](https://www.datadoghq.com). After the response has been sent, you can send logs of response times, errors, API call durations or overall performance metrics. - The `event` object is fully typed and can be imported from `next/server`. ```ts