package file→ .shtukbase/packages/lenses/actions/serve.mjs
actions/serve.mjs
5 lines, 278 B.
- // Action `serve [port]`: serves the project folder and the kit's small API on 127.0.0.1 (port: argument,
- // then SHTUK_PORT, then 4321).
- import { serve } from "./kit.mjs";
- const port = Number(process.argv[2] || process.env.SHTUK_PORT || 4321);
- process.exit(await serve(port));