Skip to content

Commit

Permalink
Merge pull request #250 from birkskyum/vinxi-serve-docs
Browse files Browse the repository at this point in the history
Add to the `vinxi serve` docs
  • Loading branch information
nksaraf committed Mar 12, 2024
2 parents 938a549 + 627186d commit 9fe0642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ SERVER_PRESET=vercel-edge vinxi start

Starts a static file server to preview the build. Options --dir, --host, --port, --base

I.e. if you have a static site (preset: `static`) with a baseURL corresponding to your repo name on github (i.e. `my-repo`), then you can preview your build like this:

`vinxi serve --dir .output/public --base /my-repo`

## `vinxi run` (experimental)

Run any typescript/javascript file within a vinxi runtime. We take care of make things like Typescript, ESM Imports, CJS Imports, etc and give you HMR powered by Vite.
Expand Down

0 comments on commit 9fe0642

Please sign in to comment.