diff --git a/packages/astro/src/types/public/config.ts b/packages/astro/src/types/public/config.ts index 8790559c51a8..fbb24a9d203f 100644 --- a/packages/astro/src/types/public/config.ts +++ b/packages/astro/src/types/public/config.ts @@ -1667,6 +1667,7 @@ export interface AstroUserConfig< /** * @docs * @kind heading + * @type {object | false} * @version 5.7.0 * @name Session Options * @description @@ -1690,7 +1691,7 @@ export interface AstroUserConfig< * * Session drivers are configured at build time. This means environment variables used in the driver configuration are inlined. You must create your own driver entrypoint to [override the configuration at runtime](https://docs.astro.build/en/guides/sessions/#overriding-the-configuration-at-runtime). * - * Set to `false` to opt out of session support entirely. With `session: false`, the session runtime is excluded from the SSR bundle, adapters skip wiring their default session driver, and `Astro.session` (and `context.session`) is `undefined` — the same as a project without sessions configured. Useful for serverless and edge runtimes where bundle parse time is sensitive. + * Since Astro v7.2.0, you can opt out of session support by setting the option to `false`. When sessions are disabled, the session runtime is excluded from the SSR bundle, and adapters skip wiring their default session driver. This is useful for serverless and edge runtimes where bundle parse time is sensitive. * * ```js title="astro.config.mjs" * import { defineConfig } from 'astro/config';