Astro: @astrojs/[email protected] Release

Release date:
February 27, 2025
Previous version:
@astrojs/[email protected] (released February 24, 2025)
Magnitude:
1,220 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

13 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored February 26, 2025
Authored February 26, 2025
Authored February 26, 2025
Authored February 26, 2025
Authored February 26, 2025
Authored February 27, 2025
Authored February 26, 2025

Top Contributors in @astrojs/[email protected]

p0lyw0lf
ematipico

Directory Browser for @astrojs/[email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Minor Changes

  • #13211 7ea0aba Thanks @slawekkolodziej! - 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