diff --git a/packages/astro/src/types/public/config.ts b/packages/astro/src/types/public/config.ts index 7f5920f85ab5..eb7acef76f5e 100644 --- a/packages/astro/src/types/public/config.ts +++ b/packages/astro/src/types/public/config.ts @@ -554,6 +554,37 @@ export interface ViteUserConfig extends OriginalViteUserConfig { checkOrigin?: boolean; }; + /** + * @docs + * @kind heading + * @name session + * @type {SessionConfig} + * @version 5.3.0 + * @description + * + * Configures experimental session support by specifying a storage `driver` as well as any associated `options`. + * You must enable the `experimental.session` flag to use this feature. + * Some adapters may provide a default session driver, but you can override it with your own configuration. + * + * You can specify [any driver from Unstorage](https://unstorage.unjs.io/drivers) or provide a custom config which will override your adapter's default. + * + * See [the experimental session guide](https://docs.astro.build/en/reference/experimental-flags/sessions/) for more information. + * + * ```js title="astro.config.mjs" + * { + * session: { + * // Required: the name of the Unstorage driver + * driver: 'redis', + * // The required options depend on the driver + * options: { + * url: process.env.REDIS_URL, + * }, + * } + * } + * ``` + */ + session?: SessionConfig; + /** * @docs * @name vite @@ -1724,36 +1755,6 @@ export interface ViteUserConfig extends OriginalViteUserConfig { validateSecrets?: boolean; }; - /** - * @docs - * @name session - * @type {SessionConfig} - * @version 5.3.0 - * @description - * - * Configures experimental session support by specifying a storage `driver` as well as any associated `options`. - * You must enable the `experimental.session` flag to use this feature. - * Some adapters may provide a default session driver, but you can override it with your own configuration. - * - * You can specify [any driver from Unstorage](https://unstorage.unjs.io/drivers) or provide a custom config which will override your adapter's default. - * - * See [the experimental session guide](https://docs.astro.build/en/reference/experimental-flags/sessions/) for more information. - * - * ```js title="astro.config.mjs" - * { - * session: { - * // Required: the name of the Unstorage driver - * driver: 'redis', - * // The required options depend on the driver - * options: { - * url: process.env.REDIS_URL, - * }, - * } - * } - * ``` - */ - session?: SessionConfig; - /** * * @kind heading