Packages

@astrojs/vercel

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

Your version

169 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 8.x
  2. 8.1.5

    4 Jun 2025
    • Handle SVG images correctly in build image service

  3. 8.1.4

    23 Apr 2025
    • Removes unused code

  4. 8.1.3

    21 Mar 2025
    • Fixes a bug that caused external redirects to fail

  5. 8.1.2

    11 Mar 2025

    Only updates a dependency:@astrojs/internal-helpers 0.6.1

  6. 8.1.1

    4 Mar 2025
    • Ensures srcset for responsive images only contains allowed sizes

  7. 8.1.0

    27 Feb 2025
    • 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/
            ],
          },
        }),
      });
    • Updates esbuild and vite to the latest to avoid false positives audits warnings caused by esbuild.

  8. 8.0.8

    24 Feb 2025
    • Fixes a small issue where the package was pulling an outdated version of its internal dependencies.

    • Uses tinyglobby for globbing files

  9. 8.0.7

    12 Feb 2025
  10. 8.0.6

    6 Feb 2025
  11. 8.0.5

    30 Jan 2025
    • Updates edge middleware to support esnext syntax

    • Fixes a bug that caused redirect loops when trailingSlash was set

  12. 8.0.4

    23 Jan 2025
    • Fixes a bug that prevented integration-generated static assets from being deployed with non-static sites

  13. 8.0.3

    22 Jan 2025
    • Fixes a bug that prevented static assets generated by integrations from being deployed

  14. 8.0.2

    13 Jan 2025
    • Improves Astro 5 support

    • Refactor of the redirects logic

  15. 8.0.1

    13 Dec 2024
    • Add back support for Node 22 on Vercel serverless that was fixed in v7 but lost in v8

  16. 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 IntegrationRouteData type

  17. 7.x
  18. 7.8.2

    17 Oct 2024
    • Fix excluding routes with rest parameters from ISR

  19. 7.8.1

    10 Sep 2024
    • Prevent crawling for dependencies outside of the workspace root

  20. 7.8.0

    20 Aug 2024
    • Deprecated

      Deprecates the functionPerRoute option

      This 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 crypto global is not applied in time. This change ensures the polyfills run first.

  21. 7.7.2

    24 Jun 2024
    • Extracts fs helpers into shared internal-helpers module

    • Fixes astro:env getSecret compatibility

  22. 7.7.1

    17 Jun 2024
    • Fix backwards compat with Astro <= 4.9

    • In Vercel Edge, include cookies set by Astro.cookies.set

  23. 7.7.0

    11 Jun 2024
    • Adds support for experimental astro:env released in Astro 4.10

  24. 7.6.0

    9 May 2024
    • Implements the vercel skew protection

  25. 7.5.4

    23 Apr 2024
    • Updates esbuild dependency to v0.20. This should not affect projects in most cases.

  26. 7.5.3

    12 Apr 2024
    • Fixes widths and densities not 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 imageConfig property of the Vercel adapter in order for these properties to work.

  27. 7.5.2

    3 Apr 2024
    • Updates the supported version of Node.js

  28. 7.5.1

    2 Apr 2024
    • Move nft warnings behind verbose logging

  29. 7.5.0

    28 Mar 2024
    • The isr.exclude configuration can now include routes with dynamic and spread parameters.

      export default defineConfig({
          adapter: vercel({
              isr: {
                  exclude: [
                      "/blog/[title]"
                      "/api/[...slug]",
                  ]
              }
          })
      })
  30. 7.4.0

    20 Mar 2024
    • Deprecated

      The special-case handling of src/vercel-edge-middleware.js file is now deprecated. This file allowed you to access the edge runtime's RequestContext object, and create the middleware locals from its fields. However, this object includes only one field - the waitUntil() function - which is now available directly as ctx.locals.vercel.edge.waitUntil().

  31. 7.3.6

    11 Mar 2024

    Only updates a dependency:@astrojs/internal-helpers 0.3.0

  32. 7.3.5

    6 Mar 2024
    • Fixes an issue that was preventing the use of sharp in some cases and causing a runtime error

  33. 7.3.4

    26 Feb 2024
    • Fixes an issue where functions were also created for prerendered routes with functionPerRoute enabled.

  34. 7.3.3

    23 Feb 2024
    • Fixes edge middleware calling nested routes

  35. 7.3.2

    22 Feb 2024
    • Fix loading client-scripts in dev with ISR

  36. 7.3.1

    13 Feb 2024
    • Prevents infinite redirects when Astro trailingSlash configuration is set to "always" and "vercel.json" trailingSlash configuration is set to true

  37. 7.3.0

    7 Feb 2024
    • Implements 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 edgeMiddleware is enabled, the serverless function will now respond with 403 Forbidden for requests that are not verified to have come from the generated edge middleware. No user action is necessary.

  38. 7.2.0

    7 Feb 2024
    • Introduces 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 isr to true in your Vercel adapter configuration in astro.config.mjs:

      export default defineConfig({
        output: 'server',
        adapter: vercel({ isr: true }),
      });
  39. 7.1.1

    2 Feb 2024
    • Fix regression with bundling of @libsql/client

  40. 7.1.0

    1 Feb 2024
    • Adds 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:

  41. 7.0.2

    26 Jan 2024
    • Fixes an issue where the serverless function ignored cookies added using Astro.cookies.

  42. 7.0.1

    22 Jan 2024
    • Fixes an issue where edge middleware did not work.

  43. 7.0.0

    18 Jan 2024
    • Breaking

      Minimum required Astro version is now 4.2.0.
      Reorganizes internals to be more maintainable.

  44. 6.x
  45. 6.1.4

    11 Jan 2024
    • Fixes an issue where the serverless function could not respond with a prerendered 404 page.

  46. 6.1.3

    5 Jan 2024
    • Deprecated

      Marks the speedInsights configuration 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.

  47. 6.1.2

    2 Jan 2024
    • Fixes an issue where a build could not complete on Node 21.

  48. 6.1.1

    27 Dec 2023
    • Updates README

  49. 6.1.0

    14 Dec 2023
    • Adds support for Node 20 (currently in beta on Vercel).

    • Fixes an issue where dots in redirects were incorrectly handled.

  50. 6.0.2

    11 Dec 2023
    • Fixes 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.

  51. 6.0.1

    6 Dec 2023
    • Uses the latest astro as the peerDependency

  52. 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 analytics option. Use the webAnalytics option instead.

    • Breaking

      Removes the deprecated @astrojs/vercel/edge export. You should use @astrojs/vercel/serverless instead with the edgeMiddleware option.

  53. 5.x
  54. 5.2.0

    8 Nov 2023
    • The 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.