Skip to content

Releases: withastro/astro

@astrojs/[email protected]

13 Feb 14:26
adb58f9
Compare
Choose a tag to compare

Minor Changes

  • #13194 1b5037b Thanks @dfdez! - Adds includedFiles and excludedFiles configuration options to customize SSR function bundle contents.

    The includeFiles property allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:

    • Data files loaded using fs operations
    • Configuration files
    • Template files

    Similarly, you can use the excludeFiles property to prevent specific files from being bundled that would otherwise be included. This is helpful for:

    • Reducing bundle size
    • Excluding large binaries
    • Preventing unwanted files from being deployed
    import { defineConfig } from 'astro/config';
    import netlify from '@astrojs/netlify';
    
    export default defineConfig({
      // ...
      output: 'server',
      adapter: netlify({
        includeFiles: ['./my-data.json'],
        excludeFiles: ['./node_modules/package/**/*', './src/**/*.test.js'],
      }),
    });

    See the Netlify adapter documentation for detailed usage instructions and examples.

  • #13145 8d4e566 Thanks @ascorbic! - Automatically configures Netlify Blobs storage when experimental session enabled

    If the experimental.session flag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.

    See the experimental session docs for more information on configuring session storage.

Patch Changes

[email protected]

12 Feb 12:15
ea9868d
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

12 Feb 12:15
ea9868d
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

12 Feb 12:15
ea9868d
Compare
Choose a tag to compare

Patch Changes

  • #13223 23094a1 Thanks @ascorbic! - Fixes a bug that caused incorrect redirects for static files with numbers in the file extension

[email protected]

04 Feb 16:20
817fe55
Compare
Choose a tag to compare

Patch Changes

  • #13133 e76aa83 Thanks @ematipico! - Fixes a bug where Astro was failing to build an external redirect when the middleware was triggered

  • #13119 ac43580 Thanks @Hacksore! - Adds extra guidance in the terminal when using the astro add tailwind CLI command

    Now, users are given a friendly reminder to import the stylesheet containing their Tailwind classes into any pages where they want to use Tailwind. Commonly, this is a shared layout component so that Tailwind styling can be used on multiple pages.

[email protected]

04 Feb 09:58
f98e29d
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

04 Feb 09:58
f98e29d
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

04 Feb 09:58
f98e29d
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

04 Feb 09:58
f98e29d
Compare
Choose a tag to compare

Patch Changes

  • #13130 b71bd10 Thanks @ascorbic! - Fixes a bug that meant that internal as well as trailing duplicate slashes were collapsed

[email protected]

31 Jan 17:38
7ccf950
Compare
Choose a tag to compare

Patch Changes

  • #13113 3a26e45 Thanks @unprintable123! - Fixes the bug that rewrite will pass encoded url to the dynamic routing and cause params mismatch.

  • #13111 23978dd Thanks @ascorbic! - Fixes a bug that caused injected endpoint routes to return not found when trailingSlash was set to always

  • #13112 0fa5c82 Thanks @ematipico! - Fixes a bug where the i18n middleware was blocking a server island request when the prefixDefaultLocale option is set to true