summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/astro/src/@types/astro.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index 59594446c..a3fcdcedd 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -335,6 +335,22 @@ type ServerConfig = {
* Set custom HTTP response headers to be sent in `astro dev` and `astro preview`.
*/
headers?: OutgoingHttpHeaders;
+
+ /**
+ * @name server.open
+ * @type {boolean}
+ * @default `false`
+ * @version 2.1.8
+ * @description
+ * Control whether the dev server should open in your browser window on startup.
+ *
+ * ```js
+ * {
+ * server: { open: true }
+ * }
+ * ```
+ */
+ open?: boolean;
};
export interface ViteUserConfig extends vite.UserConfig {
@@ -879,6 +895,21 @@ export interface AstroUserConfig {
*/
/**
+ * @name server.open
+ * @type {boolean}
+ * @default `false`
+ * @version 2.1.8
+ * @description
+ * Control whether the dev server should open in your browser window on startup.
+ *
+ * ```js
+ * {
+ * server: { open: true }
+ * }
+ * ```
+ */
+
+ /**
* @docs
* @name server.headers
* @typeraw {OutgoingHttpHeaders}