summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/types/public/config.ts61
1 files changed, 31 insertions, 30 deletions
diff --git a/packages/astro/src/types/public/config.ts b/packages/astro/src/types/public/config.ts
index 7f5920f85..eb7acef76 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<TSession>;
+
/**
* @docs
* @name vite
@@ -1725,36 +1756,6 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
};
/**
- * @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<TSession>;
-
- /**
*
* @kind heading
* @name Legacy Flags