From 627186d8ab7ff03de4a396b52f9ea718372d93b4 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Mon, 11 Mar 2024 23:58:02 +0100 Subject: [PATCH] add more vinxi serve docs --- docs/api/cli.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/cli.md b/docs/api/cli.md index 5b480557..beda8a1d 100644 --- a/docs/api/cli.md +++ b/docs/api/cli.md @@ -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.