6.0.0-beta.11

✨ Major Changes

🍿 Minor Changes

  • #15460 ee7e53f Thanks @florian-lefebvre! - Updates the Adapter API to allow providing a serverEntrypoint when using entryType: 'self'

    Astro 6 introduced a new powerful yet simple Adapter API for defining custom server entrypoints. You can now call setAdapter() with the entryType: 'self' option and specify your custom serverEntrypoint:

    export function myAdapter() {
    return {
    name: 'my-adapter',
    hooks: {
    'astro:config:done': ({ setAdapter }) => {
    setAdapter({
    name: 'my-adapter',
    entryType: 'self',
    serverEntrypoint: 'my-adapter/server.js',
    supportedAstroFeatures: {
    // ...
    },
    });
    },
    },
    };
    }

    If you need further customization at the Vite level, you can omit serverEntrypoint and instead specify your custom server entrypoint with vite.build.rollupOptions.input.

🐞 Patch Changes

  • #15454 b47a4e1 Thanks @Fryuni! - Fixes a race condition in the content layer which could result in dropped content collection entries.

  • #15450 50c9129 Thanks @florian-lefebvre! - Fixes a case where build.serverEntry would not be respected when using the new Adapter API

  • #15473 d653b86 Thanks @matthewp! - Improves Host header handling for SSR deployments behind proxies