MCPcopy
hub / github.com/freshframework/fresh / launchProd

Function launchProd

packages/plugin-vite/tests/test_utils.ts:206–218  ·  view source on GitHub ↗
(
  options: ProdOptions,
  fn: (address: string) => void | Promise<void>,
)

Source from the content-addressed store, hash-verified

204}
205
206export async function launchProd(
207 options: ProdOptions,
208 fn: (address: string) => void | Promise<void>,
209) {
210 return await withChildProcessServer(
211 {
212 cwd: options.cwd,
213 args: options.args ??
214 ["serve", "-A", "--cached-only", "--port", "0", "_fresh/server.js"],
215 },
216 fn,
217 );
218}

Callers 2

main_test.tsFile · 0.90
build_test.tsFile · 0.90

Calls 1

withChildProcessServerFunction · 0.90

Tested by

no test coverage detected