Skip to content

Releases: withastro/astro

[email protected]

06 Jun 21:27
8a029d9
Compare
Choose a tag to compare

Patch Changes

[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7067 57f8d14c0 Thanks @matthewp! - Experimental redirects support

    This change adds support for the redirects RFC, currently in stage 3: withastro/roadmap#587

    Now you can specify redirects in your Astro config:

    import { defineConfig } from 'astro/config';
    
    export defineConfig({
      redirects: {
        '/blog/old-post': '/blog/new-post'
      }
    });

    You can also specify spread routes using the same syntax as in file-based routing:

    import { defineConfig } from 'astro/config';
    
    export defineConfig({
      redirects: {
        '/blog/[...slug]': '/articles/[...slug]'
      }
    });

    By default Astro will build HTML files that contain the <meta http-equiv="refresh"> tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production.

  • #7237 414eb19d2 Thanks @bluwy! - Remove experimental flag for custom client directives

  • #7274 b5213654b Thanks @Princesseuh! - Update base tsconfig.json template with allowJs: true to provide a better relaxed experience for users unfamilliar with TypeScript. allowJs is still set to false (its default value) when using the strictest preset.

  • #7180 e3b8c6296 Thanks @lilnasy! - The Inline Stylesheets RFC is now stable!

    You can now control how Astro bundles your css with a configuration change:

    export default defineConfig({
        ...
        build: {
            inlineStylesheets: "auto"
        }
        ...
    })

    The options:

    • inlineStylesheets: "never": This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a <link> tag. Default.
    • inlineStylesheets: "auto": Small stylesheets are inlined into <style> tags and inserted into <head>, while larger ones remain external.
    • inlineStylesheets: "always": Every style required by the page is inlined.

    As always, css files in the public folder are not affected.

  • #7260 39403c32f Thanks @natemoo-re! - Unflags support for output: 'hybrid' mode, which enables pre-rendering by default. The additional experimental.hybridOutput flag can be safely removed from your configuration.

  • #7109 101f03209 Thanks @ematipico! - Remove experimental flag for the middleware

Patch Changes

@astrojs/[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7067 57f8d14c0 Thanks @matthewp! - Support for experimental redirects

    This adds support for the redirects RFC in the Vercel adapter. No changes are necessary, simply use configured redirects and the adapter will output the vercel.json file with the configuration values.

Patch Changes

@astrojs/[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7227 4929332c3 Thanks @alex-sherwin! - Fixes NodeJS adapter for multiple set-cookie headers and combining AstroCookies and Response.headers cookies

Patch Changes

@astrojs/[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7067 57f8d14c0 Thanks @matthewp! - Support for experimental redirects

    This adds support for the redirects RFC in the Netlify adapter, including a new @astrojs/netlify/static adapter for static sites.

    No changes are necessary when using SSR. Simply use configured redirects and the adapter will update your _redirects file.

Patch Changes

@astrojs/[email protected]

06 Jun 21:27
8a029d9
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

06 Jun 21:27
8a029d9
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7260 39403c32f Thanks @natemoo-re! - Unflags support for output: 'hybrid' mode, which enables pre-rendering by default. The additional experimental.hybridOutput flag can be safely removed from your configuration.

Patch Changes

@astrojs/[email protected]

06 Jun 15:34
d5a0898
Compare
Choose a tag to compare

Minor Changes

  • #7067 57f8d14c0 Thanks @matthewp! - Support for experimental redirects

    This adds support for the redirects RFC in the Cloudflare adapter. No changes are necessary, simply use configured redirects and the adapter will update your _redirects file.

Patch Changes

[email protected]

02 Jun 18:18
c895981
Compare
Choose a tag to compare

Patch Changes