diff options
author | 2021-08-26 12:08:52 -0700 | |
---|---|---|
committer | 2021-08-26 12:08:52 -0700 | |
commit | ff92be637ffd9a9841b771e94d8deef1c62422cb (patch) | |
tree | 56dab4a40c432e95914eaedbf3df7d3f8175b60d /docs/src/pages/reference/cli-reference.md | |
parent | 155676275b1c61fb37e22fb09c4967224b2c17af (diff) | |
download | astro-ff92be637ffd9a9841b771e94d8deef1c62422cb.tar.gz astro-ff92be637ffd9a9841b771e94d8deef1c62422cb.tar.zst astro-ff92be637ffd9a9841b771e94d8deef1c62422cb.zip |
add "astro preview" command (#1226)
* add "astro preview" command
* Update green-buttons-reflect.md
* Update cli-reference.md
Diffstat (limited to 'docs/src/pages/reference/cli-reference.md')
-rw-r--r-- | docs/src/pages/reference/cli-reference.md | 6 |
1 files changed, 6 insertions, 0 deletions
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` |