@astrojs/vercel
11.0.22 · 13 Nov 2026MIT790.2k / weekRepositoryHomepagenpmAtom feed
10.0.8 is the newest release of 10.x.
In short
1 breaking1 deprecated4 new5 fixed1 internal
- Breaking
Removes the deprecated
@astrojs/vercel/serverlessand@astrojs/vercel/staticexports. Use the@astrojs/vercelexport instead - Deprecated
Adds new
middlewareModeadapter feature and deprecatesedgeMiddlewareoption
Security
1 advisory affects 10.0.0; 10.0.2 fixes them
- ModerateAstro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path`GHSA-mr6q-rp88-fx84 · 26 Mar 2026Fixed in 10.0.2
Release note
Major Changes
- Breaking
Removes the deprecated
@astrojs/vercel/serverlessand@astrojs/vercel/staticexports. Use the@astrojs/vercelexport 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
middlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({ adapter: vercel({ - edgeMiddleware: true + middlewareMode: 'edge' }) }) Removes the
experimental.cspflag and replaces it with a new configuration optionsecurity.csp- (v6 upgrade guidance)
Patch Changes
Adds a new
clientAddressoption to thecreateContext()functionProviding this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing
clientAddressthrows 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
clientAddresswas incorrect in cases of a Request header with multiple values. TheclientAddressis 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.serverEntrywould not be respected when using the new Adapter APIUpdates 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.