@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.
- 8.x
8.1.5
4 Jun 2025Handle SVG images correctly in build image service
8.1.4
23 Apr 2025Removes unused code
8.1.3
21 Mar 2025Fixes a bug that caused external redirects to fail
8.1.2
11 Mar 2025Only updates a dependency:@astrojs/internal-helpers 0.6.1
8.1.1
4 Mar 2025Ensures
srcsetfor responsive images only contains allowed sizes
8.1.0
27 Feb 2025Adds support for regular expressions in ISR exclude list
Previously, excluding a page from ISR required explicitly listing it in
isr.exclude. As websites grew larger, maintaining this list became increasingly difficult, especially for multiple API routes and pages that needed server-side rendering.To address this, ISR exclusions now support regular expressions, allowing for more flexible and scalable configurations.
// astro.config.mjs import vercel from '@astrojs/vercel/serverless'; export default defineConfig({ output: 'server', adapter: vercel({ isr: { exclude: [ '/preview', // Excludes a specific route (e.g., pages/preview.astro) '/auth/[page]', // Excludes a dynamic route (e.g., pages/auth/[page].astro) /^\/api\/.+/, // Excludes all routes starting with /api/ ], }, }), });Updates
esbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.
Minor Changes
Adds support for regular expressions in ISR exclude list
Previously, excluding a page from ISR required explicitly listing it in
isr.exclude. As websites grew larger, maintaining this list became increasingly difficult, especially for multiple API routes and pages that needed server-side rendering.To address this, ISR exclusions now support regular expressions, allowing for more flexible and scalable configurations.
// astro.config.mjs import vercel from '@astrojs/vercel/serverless'; export default defineConfig({ output: 'server', adapter: vercel({ isr: { exclude: [ '/preview', // Excludes a specific route (e.g., pages/preview.astro) '/auth/[page]', // Excludes a dynamic route (e.g., pages/auth/[page].astro) /^\/api\/.+/, // Excludes all routes starting with /api/ ], }, }), });
Patch Changes
Updates
esbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.
8.0.8
24 Feb 2025Fixes a small issue where the package was pulling an outdated version of its internal dependencies.
Uses
tinyglobbyfor globbing files
8.0.7
12 Feb 2025Unpins
@vercel/routing-utilsdependency as bug has been fixed
8.0.6
6 Feb 2025Pins
@vercel/routing-utilsto avoid broken version
8.0.5
30 Jan 2025Updates edge middleware to support esnext syntax
Fixes a bug that caused redirect loops when trailingSlash was set
8.0.4
23 Jan 2025Fixes a bug that prevented integration-generated static assets from being deployed with non-static sites
8.0.3
22 Jan 2025Fixes a bug that prevented static assets generated by integrations from being deployed
8.0.2
13 Jan 2025Improves Astro 5 support
Refactor of the redirects logic
8.0.1
13 Dec 2024Add back support for Node 22 on Vercel serverless that was fixed in v7 but lost in v8
8.0.0
3 Dec 2024- Breaking
Updates internal code to works with Astro 5 changes to hybrid rendering. No changes are necessary to your project, apart from using Astro 5
- Breaking
Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.
Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
- Breaking
Updates the adapter to use new
IntegrationRouteDatatype
Major Changes
- Breaking
Updates internal code to works with Astro 5 changes to hybrid rendering. No changes are necessary to your project, apart from using Astro 5
- Breaking
Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.
Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
- Breaking
Updates the adapter to use new
IntegrationRouteDatatype - Breaking
Updates esbuild dependency to v0.24.0
- Breaking
Removes deprecated
speedInsightsoption in favor of Vercel's direct support: vercel.com/docs/speed-insights/quickstart - Breaking
Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5
Minor Changes
- Deprecated
Deprecates the entrypoints
@astrojs/vercel/serverlessand@astrojs/vercel/static. These will continue to work but are no longer documented and will be removed in a future version. We recommend updating to the@astrojs/vercelentrypoint as soon as you are able:-import vercel from "@astrojs/vercel/static" +import vercel from "@astrojs/vercel"
-import vercel from "@astrojs/vercel/serverless" +import vercel from "@astrojs/vercel"
Add support for Node 22 on Vercel serverless
Cleans up
astro:envsupport
Patch Changes
Fixes a regression where the
@astrojs/vercelsingle entry point for the adapter was causing some regressions in users projects.
- 7.x
7.8.2
17 Oct 2024Fix excluding routes with rest parameters from ISR
7.8.1
10 Sep 2024Prevent crawling for dependencies outside of the workspace root
7.8.0
20 Aug 2024- Deprecated
Deprecates the
functionPerRouteoptionThis option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
import { defineConfig } from 'astro/config'; import vercel from '@astrojs/vercel/serverless'; export default defineConfig({ // ... output: 'server', adapter: vercel({ - functionPerRoute: true, }), }); Prevent race condition with Node 18
Using Node 18 there can be a race condition where polyfill for the
cryptoglobal is not applied in time. This change ensures the polyfills run first.
7.7.2
24 Jun 2024Extracts fs helpers into shared internal-helpers module
Fixes
astro:envgetSecret compatibility
Patch Changes
Extracts fs helpers into shared internal-helpers module
Fixes
astro:envgetSecret compatibility
7.7.1
17 Jun 2024Fix backwards compat with Astro <= 4.9
In Vercel Edge, include cookies set by Astro.cookies.set
7.7.0
11 Jun 2024Adds support for experimental
astro:envreleased in Astro 4.10
7.6.0
9 May 2024Implements the vercel skew protection
7.5.4
23 Apr 2024Updates
esbuilddependency to v0.20. This should not affect projects in most cases.
7.5.3
12 Apr 2024Fixes
widthsanddensitiesnot working when using Vercel's Image Optimization.Note that you still need to make sure that the widths you're outputting are enabled in the
imageConfigproperty of the Vercel adapter in order for these properties to work.
7.5.2
3 Apr 2024Updates the supported version of Node.js
7.5.1
2 Apr 2024Move nft warnings behind verbose logging
7.5.0
28 Mar 2024The
isr.excludeconfiguration can now include routes with dynamic and spread parameters.export default defineConfig({ adapter: vercel({ isr: { exclude: [ "/blog/[title]" "/api/[...slug]", ] } }) })
7.4.0
20 Mar 2024- Deprecated
The special-case handling of
src/vercel-edge-middleware.jsfile is now deprecated. This file allowed you to access the edge runtime'sRequestContextobject, and create the middlewarelocalsfrom its fields. However, this object includes only one field - thewaitUntil()function - which is now available directly asctx.locals.vercel.edge.waitUntil().
7.3.6
11 Mar 2024Only updates a dependency:@astrojs/internal-helpers 0.3.0
7.3.5
6 Mar 2024Fixes an issue that was preventing the use of
sharpin some cases and causing a runtime error
7.3.4
26 Feb 2024Fixes an issue where functions were also created for prerendered routes with
functionPerRouteenabled.
7.3.3
23 Feb 2024Fixes edge middleware calling nested routes
7.3.2
22 Feb 2024Fix loading client-scripts in dev with ISR
7.3.1
13 Feb 2024Prevents infinite redirects when Astro
trailingSlashconfiguration is set to"always"and "vercel.json"trailingSlashconfiguration is set totrue
7.3.0
7 Feb 2024Implements verification for edge middleware. This is a security measure to ensure that your serverless functions are only ever called by your edge middleware and not a third party.
When
edgeMiddlewareis enabled, the serverless function will now respond with403 Forbiddenfor requests that are not verified to have come from the generated edge middleware. No user action is necessary.
7.2.0
7 Feb 2024Introduces a new config option,
isr, that allows you to deploy your project as an ISR function. ISR (Incremental Static Regeneration) caches your on-demand rendered pages in the same way as prerendered pages after first request.To enable this feature, set
isrto true in your Vercel adapter configuration inastro.config.mjs:export default defineConfig({ output: 'server', adapter: vercel({ isr: true }), });
7.1.1
2 Feb 2024Fix regression with bundling of @libsql/client
7.1.0
1 Feb 2024Adds experimental support for internationalization domains
Better ignores for Vercel file-tracer
The Vercel adapter has a file-tracer it uses to detect which files should be moved over to the
dist/folder. When it's done, it prints warnings for things that it detected that maybe should be moved.This change expands how we do ignores so that:
7.0.2
26 Jan 2024Fixes an issue where the serverless function ignored cookies added using Astro.cookies.
7.0.1
22 Jan 2024Fixes an issue where edge middleware did not work.
7.0.0
18 Jan 2024- Breaking
Minimum required Astro version is now 4.2.0.
Reorganizes internals to be more maintainable.
- 6.x
6.1.4
11 Jan 2024Fixes an issue where the serverless function could not respond with a prerendered 404 page.
6.1.3
5 Jan 2024- Deprecated
Marks the
speedInsightsconfiguration as deprecated. Vercel has migrated features of the Speed Insights API into a framework-agnostic library with@vercel/speed-insights. See Vercel Speed Insights Quickstart for instructions on how to use the library instead. Fixes an issue where 404.astro was not used in static mode.
6.1.2
2 Jan 2024Fixes an issue where a build could not complete on Node 21.
6.1.1
27 Dec 2023Updates README
6.1.0
14 Dec 2023Adds support for Node 20 (currently in
betaon Vercel).Fixes an issue where dots in redirects were incorrectly handled.
6.0.2
11 Dec 2023Fixes an issue where redirects did not work with the static adapter.
Fixes some incorrect code examples in the README documentation.
Allows the edge middleware to be an async function.
6.0.1
6 Dec 2023Uses the latest astro as the peerDependency
6.0.0
5 Dec 2023- Breaking
The internals of the integration have been updated to support Astro 4.0. Make sure to upgrade your Astro version as Astro 3.0 is no longer supported.
- Breaking
Removes deprecated
analyticsoption. Use thewebAnalyticsoption instead. - Breaking
Removes the deprecated
@astrojs/vercel/edgeexport. You should use@astrojs/vercel/serverlessinstead with theedgeMiddlewareoption.
- 5.x
5.2.0
8 Nov 2023The Vercel adapter now streams responses!
This brings better performance to your visitors by showing them content as it is rendered. The browser can also start loading the required stylesheets and scripts much sooner, which ultimately results in faster full page loads.
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.