Releases: withastro/astro
@astrojs/[email protected]
Patch Changes
-
#13526
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest version -
Updated dependencies [
ff9d69e
]:- @astrojs/[email protected]
@astrojs/[email protected]
Minor Changes
-
#13514
a9aafec
Thanks @ascorbic! - Automatically configures Cloudflare KV storage when experimental sessions are enabledIf 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 thesessionKVBindingName
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
-
#13526
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest version -
Updated dependencies []:
- @astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
- #13526
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest version
[email protected]
Patch Changes
-
#13510
5b14d33
Thanks @florian-lefebvre! - Fixes a case whereastro: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 dependencyvite
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]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.
@astrojs/[email protected]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.
@astrojs/[email protected]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.
@astrojs/[email protected]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.
@astrojs/[email protected]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.
@astrojs/[email protected]
Patch Changes
- #13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.