Packages

@astrojs/vercel

11.0.22 · 13 Nov 2026MIT790.2k / weekRepositoryHomepagenpmAtom feed

Your version

10.0.0

major10 Mar 2026Where it was published

10.0.8 is the newest release of 10.x.

In short

1 breaking1 deprecated4 new5 fixed1 internal

  • Breaking

    Removes the deprecated @astrojs/vercel/serverless and @astrojs/vercel/static exports. Use the @astrojs/vercel export instead

  • Deprecated

    Adds new middlewareMode adapter feature and deprecates edgeMiddleware option

Security

1 advisory affects 10.0.0; 10.0.2 fixes them

Release note

Major Changes

  • Breaking

    Removes the deprecated @astrojs/vercel/serverless and @astrojs/vercel/static exports. Use the @astrojs/vercel export instead

Minor Changes

  • Stabilizes the adapter feature experimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:

    export default defineConfig({
      adapter: netlify({
    -    experimentalStaticHeaders: true
    +    staticHeaders: true
      })
    })
  • Updates the implementation to use the new Adapter API

  • Deprecated

    Adds new middlewareMode adapter feature and deprecates edgeMiddleware option

    The edgeMiddleware option is now deprecated and will be removed in a future release, so users should transition to using the new middlewareMode feature as soon as possible.

    export default defineConfig({
      adapter: vercel({
    -    edgeMiddleware: true
    +    middlewareMode: 'edge'
      })
    })
  • Removes the experimental.csp flag and replaces it with a new configuration option security.csp - (v6 upgrade guidance)

Patch Changes

  • Adds a new clientAddress option to the createContext() function

    Providing this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing clientAddress throws an error consistent with other contexts where it is not set by the adapter.

    Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.

    import { createContext } from 'astro/middleware';
    
    createContext({
      clientAddress: context.headers.get('x-real-ip'),
    });
  • Fixes an issue where the computed clientAddress was incorrect in cases of a Request header with multiple values. The clientAddress is now also validated to contain only characters valid in IP addresses, rejecting injection payloads.

  • Updates to use the new Adapter API

  • Fixes a case where build.serverEntry would not be respected when using the new Adapter API

  • Updates to new Adapter API introduced in v6

  • Updates Node versions data to account for v24 as the default

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.