From 493b75b12c1a8ae5e2014b5bc1c5e525216b0108 Mon Sep 17 00:00:00 2001 From: Jacob Lamb <44789941+jacobdalamb@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:53:12 -0800 Subject: [PATCH 1/4] Update cli-reference.mdx --- src/content/docs/en/reference/cli-reference.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/docs/en/reference/cli-reference.mdx b/src/content/docs/en/reference/cli-reference.mdx index d141e5a8e1b99..b60189bd1cf80 100644 --- a/src/content/docs/en/reference/cli-reference.mdx +++ b/src/content/docs/en/reference/cli-reference.mdx @@ -208,6 +208,10 @@ This command allows you to preview your site locally [after building](#astro-bui Since Astro 1.5.0, the [Node adapter](/en/guides/integrations-guide/node/) supports `astro preview` for builds generated with on-demand rendering. +The following hotkeys can be used in the terminal where the Astro preview server is running: +o + enter to open your Astro site in the browser. +q + enter to quit the preview server. + Can be combined with the [common flags](#common-flags) documented below. ## `astro check` From 20348ce0d20aa5567215b05993d31542d8241c29 Mon Sep 17 00:00:00 2001 From: Jacob Lamb <44789941+jacobdalamb@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:23:30 -0800 Subject: [PATCH 2/4] Update src/content/docs/en/reference/cli-reference.mdx Co-authored-by: Armand Philippot --- src/content/docs/en/reference/cli-reference.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/reference/cli-reference.mdx b/src/content/docs/en/reference/cli-reference.mdx index b60189bd1cf80..d8e3841742c94 100644 --- a/src/content/docs/en/reference/cli-reference.mdx +++ b/src/content/docs/en/reference/cli-reference.mdx @@ -209,8 +209,8 @@ This command allows you to preview your site locally [after building](#astro-bui Since Astro 1.5.0, the [Node adapter](/en/guides/integrations-guide/node/) supports `astro preview` for builds generated with on-demand rendering. The following hotkeys can be used in the terminal where the Astro preview server is running: -o + enter to open your Astro site in the browser. -q + enter to quit the preview server. +- o + enter to open your Astro site in the browser. +- q + enter to quit the preview server. Can be combined with the [common flags](#common-flags) documented below. From b110ddeb9e09c4ece1d7e95fcbb19789b42f5c3a Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Date: Wed, 5 Nov 2025 10:10:20 -0400 Subject: [PATCH 3/4] reorganization --- src/content/docs/en/reference/cli-reference.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/docs/en/reference/cli-reference.mdx b/src/content/docs/en/reference/cli-reference.mdx index d8e3841742c94..b6f089ed89907 100644 --- a/src/content/docs/en/reference/cli-reference.mdx +++ b/src/content/docs/en/reference/cli-reference.mdx @@ -206,13 +206,11 @@ Starts a local server to serve the contents of your static directory (`dist/` by This command allows you to preview your site locally [after building](#astro-build) to catch any errors in your build output before deploying it. It is not designed to be run in production. For help with production hosting, check out our guide on [Deploying an Astro Website](/en/guides/deploy/). -Since Astro 1.5.0, the [Node adapter](/en/guides/integrations-guide/node/) supports `astro preview` for builds generated with on-demand rendering. - The following hotkeys can be used in the terminal where the Astro preview server is running: - o + enter to open your Astro site in the browser. - q + enter to quit the preview server. -Can be combined with the [common flags](#common-flags) documented below. +The `astro preview` command can be combined with the [common flags](#common-flags) documented below to further control the preview experience. ## `astro check` From 77d893f311c0265d64271197358d0c1c4a6395ba Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Date: Wed, 5 Nov 2025 11:35:30 -0400 Subject: [PATCH 4/4] inline code for keys Co-authored-by: Armand Philippot --- src/content/docs/en/reference/cli-reference.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/reference/cli-reference.mdx b/src/content/docs/en/reference/cli-reference.mdx index b6f089ed89907..8a9f3748369bd 100644 --- a/src/content/docs/en/reference/cli-reference.mdx +++ b/src/content/docs/en/reference/cli-reference.mdx @@ -207,8 +207,8 @@ Starts a local server to serve the contents of your static directory (`dist/` by This command allows you to preview your site locally [after building](#astro-build) to catch any errors in your build output before deploying it. It is not designed to be run in production. For help with production hosting, check out our guide on [Deploying an Astro Website](/en/guides/deploy/). The following hotkeys can be used in the terminal where the Astro preview server is running: -- o + enter to open your Astro site in the browser. -- q + enter to quit the preview server. +- `o` + `enter` to open your Astro site in the browser. +- `q` + `enter` to quit the preview server. The `astro preview` command can be combined with the [common flags](#common-flags) documented below to further control the preview experience.