diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md index 27bfb93a84e2..19d841a2f10f 100644 --- a/packages/integrations/vercel/README.md +++ b/packages/integrations/vercel/README.md @@ -235,7 +235,7 @@ export default defineConfig({ ### Vercel Edge Middleware -You can use Vercel edge middleware to intercept a request and redirect before sending a response. Vercel middleware can run for Edge, SSR, and Static deployments. You don't need to install `@vercel/edge` to write middleware, but you do need to install it to use features such as geolocation. For more information see [Vercel’s middleware documentation](https://vercel.com/docs/concepts/functions/edge-middleware). +You can use Vercel Edge middleware to intercept a request and redirect before sending a response. Vercel middleware can run for Edge, SSR, and Static deployments. You may not need to install this package for your middleware. `@vercel/edge` is only required to use some middleware features such as geolocation. For more information see [Vercel’s middleware documentation](https://vercel.com/docs/concepts/functions/edge-middleware). 1. Add a `middleware.js` file to the root of your project: @@ -264,7 +264,7 @@ You can use Vercel edge middleware to intercept a request and redirect before se ### Vercel Edge Middleware with Astro middleware -The `@astrojs/vercel/serverless` adapter can automatically create the vercel edge middleware when you have an Astro middleware in you code base. +The `@astrojs/vercel/serverless` adapter can automatically create the Vercel Edge middleware from an Astro middleware in your code base. This is an opt-in feature, and the `build.excludeMiddleware` option needs to be set to `true`: