@astrojs/vercel
11.0.22 · 13 Nov 2026MIT790.2k / weekRepositoryHomepagenpmAtom feed
169 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 11.x · latest line
11.0.22
13 Nov 2026Unpins
@astrojs/*dependencies to allow versions matching the^range to be installed
11.0.21
10 Nov 2026Prevents server function traces from including the entire project when a dependency uses paths the tracer cannot resolve.
Patch Changes
Prevents server function traces from including the entire project when a dependency uses paths the tracer cannot resolve.
11.0.20
5 Nov 2026Only updates a dependency:@astrojs/internal-helpers 0.13.1
11.0.19
5 Nov 2026Fixes Vercel builds that crash on unrecognized NFT dependency-resolution warnings
11.0.18
2 Nov 2026Fixes NFT tracing so dynamic path segments no longer glob the whole workspace, which could include unrelated files in function bundles for monorepo projects
11.0.17
28 Oct 2026Fix redirects never matching on Vercel when
trailingSlash: 'always'is set. Redirect sources now include the trailing slash so they match the normalized request path. Sources whose last segment contains a dot are left unslashed, and dynamic or spread sources emit both the slashed and unslashed form, because Vercel only normalizes paths without a dot.
11.0.16
19 Oct 2026Uses the Vercel Bun runtime for serverless functions when the project is built with Bun (e.g.
bunx --bun astro build)
11.0.15
15 Oct 2026Only updates a dependency:@astrojs/internal-helpers 0.13.0
11.0.14
12 Oct 2026Fixes on-demand routes failing with "Cannot find native binding" on Vercel, caused by the serverless function loading
rolldownat runtime
11.0.13
8 Oct 2026Refactors internal bundling and code transforms to use Vite's Oxc-based
transformWithOxcand Rolldown instead of esbuild. These packages no longer depend on esbuild directly.
11.0.12
6 Oct 2026Fixes middleware rewrites returning 404 instead of 200 when the 404 page is server-rendered
Patch Changes
Fixes middleware rewrites returning 404 instead of 200 when the 404 page is server-rendered
11.0.11
22 Sep 2026Fixes a rare issue where ISR pages on Vercel could intermittently be served a cached redirect to a nonsense URL (such as
/$0/) instead of the page itself. Pages now render correctly, and requests that can't be resolved to a valid path return a404instead of a redirect.Fixes the immutable
Cache-Controlrule for hashed assets (/_astro/*) being emitted after thefilesystemroute handle in.vercel/output/config.json.
11.0.10
3 Sep 2026Updates the development image service to forward every argument it receives to Astro's Sharp service, including the new
loggerparameter
11.0.9
31 Aug 2026Updates dependency
@vercel/analyticsto v2. See the changelog for more details.
Updates dependency@vercel/routing-utilsto v6. See the changelog for more details.
Patch Changes
Updates dependency
@vercel/analyticsto v2. See the changelog for more details.
Updates dependency@vercel/routing-utilsto v6. See the changelog for more details.
11.0.8
24 Aug 2026Fixes a bug where
@vercel/nftfile tracing silently dropped all dependency files whenoutDirwas configured outsideroot, causing deployed functions to crash withERR_MODULE_NOT_FOUND
11.0.7
19 Aug 2026Fixes
middlewareMode: 'edge'not running your middleware whenisris also enabledPreviously, enabling both options deployed the edge middleware but never reached it: requests went straight to the ISR function, which skips rendering entirely on a cache hit. Middleware now runs at the edge for ISR-backed routes before the cached response is served, and query strings are preserved when it forwards the request.
Patch Changes
Fixes
middlewareMode: 'edge'not running your middleware whenisris also enabledPreviously, enabling both options deployed the edge middleware but never reached it: requests went straight to the ISR function, which skips rendering entirely on a cache hit. Middleware now runs at the edge for ISR-backed routes before the cached response is served, and query strings are preserved when it forwards the request.
11.0.6
18 Aug 2026Fixes server islands returning 404 responses in Vercel deployments using
output: "static"
Patch Changes
Fixes server islands returning 404 responses in Vercel deployments using
output: "static"
11.0.5
6 Aug 2026Prevents
astro buildfrom crashing withEEXISTwhen.vercel/output/server/already exists by creating it with{ recursive: true }, matching the siblingstatic/directory call
11.0.4
28 Jul 2026Only updates a dependency:@astrojs/internal-helpers 0.10.2
11.0.3
13 Jul 2026Improves internal ISR route handling
11.0.2
2 Jul 2026Only updates a dependency:@astrojs/internal-helpers 0.10.1
11.0.1
1 Jul 2026Fixes an issue where the
peerDependenciesfield used incorrect dependencies.
11.0.0
22 Jun 2026- Breaking
Upgrade to Vite v8
Adds a CDN cache provider for Astro route caching on Vercel
Triggers beta prereleases for packages that are still on alpha
- 10.x
10.0.7 – 10.0.82 releases that only update dependencies@astrojs/internal-helpers 0.10.0Show each
- 10.0.828 May 2026@astrojs/internal-helpers 0.10.0
- 10.0.713 May 2026@astrojs/internal-helpers 0.9.1
10.0.6
28 Apr 2026Fix forwarded serverless requests with streamed bodies by preserving the required
duplex: 'half'option when rewriting middleware paths.
10.0.5
22 Apr 2026Only updates a dependency:@astrojs/internal-helpers 0.9.0
10.0.4
1 Apr 2026Fixes edge middleware
next()dropping the HTTP method and body when forwarding requests to the serverless function, which caused non-GET API routes (POST, PUT, PATCH, DELETE) to return 404
10.0.3
26 Mar 2026Fix vercel ISR path rewrite
10.0.2
19 Mar 2026Fix Vercel serverless path override handling so override values are only applied when the trusted middleware secret is present.
10.0.1
16 Mar 2026Updates the Astro
peerDependencies#astroto be6.0.0.
10.0.0
10 Mar 2026- Breaking
Removes the deprecated
@astrojs/vercel/serverlessand@astrojs/vercel/staticexports. Use the@astrojs/vercelexport instead - 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' }) }) 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 }) })
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
- 9.x
9.0.5
10 Mar 2026Only updates a dependency:@astrojs/internal-helpers 0.7.6
9.0.4
16 Jan 2026Improves error message when using Node builtins inside Edge middlewares
9.0.3
7 Jan 2026Updates Node versions data to account for v24 as the default
9.0.2
26 Nov 2025Allow "node:" prefix for Node builtins
9.0.1
17 Nov 2025Only updates a dependency:@astrojs/internal-helpers 0.7.5
9.0.0
23 Oct 2025- Breaking
Updates Node v18 'retiring' notice to 'deprecated' for Vercel adapter.
Enables skew protection for Astro sites deployed on Vercel. Skew protection ensures that your site's client and server versions stay synchronized during deployments, preventing issues where users might load assets from a newer deployment while the server is still running the older version.
Skew protection is automatically enabled on Vercel deployments when the
VERCEL_SKEW_PROTECTION_ENABLEDenvironment variable is set to1. The deployment ID is automatically included in both asset requests and API calls, allowing Vercel to serve the correct version to every user.
- 8.x
8.2.11
21 Oct 2025Fix regression in 8.2.7: validate densities-based srcset widths against configured sizes
When using
densitieswith the Vercel image adapter, calculated widths were not being validated against Vercel's configured sizes list. This caused images to fail when using densities, as Vercel would reject the invalid widths.This fix ensures densities-calculated widths are mapped to valid configured sizes, matching the behavior already implemented for the
widthsprop.
8.2.10
14 Oct 2025Fixes a bug that caused too many files to be bundled in SSR
8.2.9
9 Oct 2025Fixes a bug that caused too many files to be bundled in SSR
Patch Changes
Fixes a bug that caused too many files to be bundled in SSR
8.2.8
22 Sep 2025Only updates a dependency:@astrojs/internal-helpers 0.7.3
8.2.7
29 Aug 2025Fixes a bug where
experimentalStaticHeadersdid not work as expected.Fixes a bug that caused invalid image sizes to be generated when the requested widths were larger than the source image
8.2.4 – 8.2.63 releases that only update dependencies@astrojs/internal-helpers 0.7.2Show each
- 8.2.615 Aug 2025@astrojs/internal-helpers 0.7.2
- 8.2.51 Aug 2025@astrojs/internal-helpers 0.7.1
- 8.2.431 Jul 2025@astrojs/internal-helpers 0.7.0
8.2.3
21 Jul 2025Changes the default Node.js version of Vercel functions to 22
8.2.2
14 Jul 2025Allow setting
domainstoundefinedinimagesConfigso thatremotePatternscan be better utilized for images from a variety of domains.
8.2.1
3 Jul 2025Fixes the internal implementation of the new feature
experimentalStaticHeaders, where dynamic routes
were mapped to use always the same header.
8.2.0
19 Jun 2025Adds support for the experimental static headers Astro feature.
When the feature is enabled via option
experimentalStaticHeaders, and experimental Content Security Policy is enabled, the adapter will generateResponseheaders for static pages, which allows support for CSP directives that are not supported inside a<meta>tag (e.g.frame-ancestors).import { defineConfig } from 'astro/config'; import vercel from '@astrojs/vercel'; export default defineConfig({ adapter: vercel({ experimentalStaticHeaders: true, }), experimental: { cps: true, }, });The responsive images feature introduced behind a flag in v5.0.0 is no longer experimental and is available for general use.
The new responsive images feature in Astro automatically generates optimized images for different screen sizes and resolutions, and applies the correct attributes to ensure that images are displayed correctly on all devices.
Enable the
image.responsiveStylesoption in your Astro config. Then, set alayoutattribute on any <Image /> or <Picture /> component, or configure a defaultimage.layout, for instantly responsive images with automatically generatedsrcsetandsizesattributes based on the image's dimensions and the layout type.Displaying images correctly on the web can be challenging, and is one of the most common performance issues seen in sites. This new feature simplifies the most challenging part of the process: serving your site visitor an image optimized for their viewing experience, and for your website's performance.
For full details, see the updated Image guide.
Minor Changes
Adds support for the experimental static headers Astro feature.
When the feature is enabled via option
experimentalStaticHeaders, and experimental Content Security Policy is enabled, the adapter will generateResponseheaders for static pages, which allows support for CSP directives that are not supported inside a<meta>tag (e.g.frame-ancestors).import { defineConfig } from 'astro/config'; import vercel from '@astrojs/vercel'; export default defineConfig({ adapter: vercel({ experimentalStaticHeaders: true, }), experimental: { cps: true, }, });
Patch Changes
The responsive images feature introduced behind a flag in v5.0.0 is no longer experimental and is available for general use.
The new responsive images feature in Astro automatically generates optimized images for different screen sizes and resolutions, and applies the correct attributes to ensure that images are displayed correctly on all devices.
Enable the
image.responsiveStylesoption in your Astro config. Then, set alayoutattribute on any <Image /> or <Picture /> component, or configure a defaultimage.layout, for instantly responsive images with automatically generatedsrcsetandsizesattributes based on the image's dimensions and the layout type.Displaying images correctly on the web can be challenging, and is one of the most common performance issues seen in sites. This new feature simplifies the most challenging part of the process: serving your site visitor an image optimized for their viewing experience, and for your website's performance.
For full details, see the updated Image guide.
Migration from Experimental Responsive Images
The `experimental.responsiveImages` flag has been removed, and all experimental image configuration options have been renamed to their final names. If you were using the experimental responsive images feature, you'll need to update your configuration:
Remove the experimental flag
```diff export default defineConfig({ experimental: { - responsiveImages: true, }, }); ```Update image configuration options
During the experimental phase, default styles were applied automatically to responsive images. Now, you need to explicitly set the `responsiveStyles` option to `true` if you want these styles applied. ```diff export default defineConfig({ image: { + responsiveStyles: true, }, }); ``` The experimental image configuration options have been renamed: **Before:** ```js export default defineConfig({ image: { experimentalLayout: 'constrained', experimentalObjectFit: 'cover', experimentalObjectPosition: 'center', experimentalBreakpoints: [640, 750, 828, 1080, 1280], experimentalDefaultStyles: true, }, experimental: { responsiveImages: true, }, }); ``` **After:** ```js export default defineConfig({ image: { layout: 'constrained', objectFit: 'cover', objectPosition: 'center', breakpoints: [640, 750, 828, 1080, 1280], responsiveStyles: true, // This is now *false* by default }, }); ```Component usage remains the same
The `layout`, `fit`, and `position` props on `<Image>` and `<Picture>` components work exactly the same as before: ```astro <Image src={myImage} alt="A responsive image" layout="constrained" fit="cover" position="center" /> ``` If you weren't using the experimental responsive images feature, no changes are required. Please see the [Image guide](https://docs.astro.build/en/guides/images/#responsive-image-behavior) for more information on using responsive images in Astro.
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.