From ff92be637ffd9a9841b771e94d8deef1c62422cb Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 26 Aug 2021 12:08:52 -0700 Subject: add "astro preview" command (#1226) * add "astro preview" command * Update green-buttons-reflect.md * Update cli-reference.md --- docs/src/pages/reference/cli-reference.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/src/pages/reference/cli-reference.md') diff --git a/docs/src/pages/reference/cli-reference.md b/docs/src/pages/reference/cli-reference.md index 98957c328..06180d812 100644 --- a/docs/src/pages/reference/cli-reference.md +++ b/docs/src/pages/reference/cli-reference.md @@ -19,6 +19,12 @@ Specifies should port to run on. Defaults to `3000`. Builds your site for production. +### `astro preview` + +Start a local static file server to serve your built `dist/` directory. Useful for previewing your static build locally, before deploying it. + +This command is meant for local testing only, and is not designed to be run in production. For help with production hosting, check out our guide on [Deploying an Astro Website](/guides/deploy). + ## Global Flags ### `--config path` -- cgit v1.2.3