Skip to content

Commit

Permalink
Clarify --serve
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Jul 2, 2022
1 parent 8858e79 commit d90de8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Now build your site to an output directory — this guide assumes that you're ru

The easiest way to run pagefind is through npx, where `--source` points to the output directory of your static site generator. We'll also add `--serve` so that we can view our final site right away.

> Note that Pagefind itself does not have any server component — the search integration is fully baked into your static site. The `--serve` flag here is a shortcut for running Pagefind, followed by serving your output site through any static web server.
```bash
npx -y pagefind --source public --serve
```
Expand Down

0 comments on commit d90de8a

Please sign in to comment.