Skip to content

Releases: withastro/astro

@astrojs/[email protected]

31 Mar 15:47
ddc98eb
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

31 Mar 15:47
ddc98eb
Compare
Choose a tag to compare

Minor Changes

  • #13514 a9aafec Thanks @ascorbic! - Automatically configures Cloudflare KV storage when experimental sessions are enabled

    If the experimental.session flag is enabled when using the Cloudflare adapter, Astro will automatically configure the session storage using the Cloudflare KV 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. If you want to use sessions, you will need to create the KV namespace and declare it in your wrangler config. You can do this using the Wrangler CLI:

    npx wrangler kv namespace create SESSION

    This will log the id of the created namespace. You can then add it to your wrangler.json/wrangler.toml file like this:

    // wrangler.json
    {
      "kv_namespaces": [
        {
          "binding": "SESSION",
          "id": "<your kv namespace id here>",
        },
      ],
    }

    By default it uses the binding name SESSION, but if you want to use a different binding name you can do so by passing the sessionKVBindingName option to the adapter. For example:

    import { defineConfig } from 'astro/config';
    import cloudflare from '@astrojs/cloudflare';
    export default defineConfig({
      output: 'server',
      site: `http://example.com`,
      adapter: cloudflare({
        platformProxy: {
          enabled: true,
        },
        sessionKVBindingName: 'MY_SESSION',
      }),
      experimental: {
        session: true,
      },
    });

    See the Cloudflare KV docs for more details on setting up KV namespaces.

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

Patch Changes

@astrojs/[email protected]

31 Mar 15:47
ddc98eb
Compare
Choose a tag to compare

Patch Changes

[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes

  • #13510 5b14d33 Thanks @florian-lefebvre! - Fixes a case where astro:env secrets used in actions would not be available

  • #13485 018fbe9 Thanks @ascorbic! - Fixes a bug that caused cookies to ignore custom decode function if has() had been called before

  • #13505 a98ae5b Thanks @ematipico! - Updates the dependency vite to the latest.

  • #13483 fc2dcb8 Thanks @ematipico! - Fixes a bug where an Astro adapter couldn't call the middleware when there isn't a route that matches the incoming request.

@astrojs/[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

26 Mar 10:25
b33cc17
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

26 Mar 10:26
b33cc17
Compare
Choose a tag to compare

Patch Changes