@astrojs/vercel
11.0.22 · 13 Nov 2026MIT790.2k / weekRepositoryHomepagenpmAtom feed
5.2.0 is the newest release of 5.x.
In short
2 breaking1 new1 internal
- Breaking
Adds a configuration option
devImageServiceto choose which of the built-in image services to use in development. Defaults tosharp. - Breaking
Turn off
functionPerRouteby default
Security
1 advisory affects 5.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
Adds a configuration option
devImageServiceto choose which of the built-in image services to use in development. Defaults tosharp. - Breaking
Turn off
functionPerRouteby defaultIn the previous version of
@astrojs/vercel, the default forfunctionPerRoutewas changed totrue. While this option has several advantages, if you're a free tier user you are likely to run into the limit of 12 functions per deployment. This will result in an error when you attempt to deploy.For this reason, the
functionPerRouteoption is now back to defaulting tofalse. It's still a useful option if you have a paid plan and have previously run into issues with your single function exceeding the size limits.
Minor Changes
Enable Vercel Speed Insights and Vercel Web Analytics individually.
Deprecates theanalyticsproperty inastro.config.mjsin favor ofspeedInsightsandwebAnalytics.If you're using the
analyticsproperty, you'll need to update your config to use the new properties:// astro.config.mjs export default defineConfig({ adapter: vercel({ - analytics: true, + webAnalytics: { + enabled: true + }, + speedInsights: { + enabled: true + } }) });Allow configuration of Web Analytics with all available configuration options.
Bumps @vercel/analytics package to the latest version.
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.