( options: ProdOptions, fn: (address: string) => void | Promise<void>, )
| 204 | } |
| 205 | |
| 206 | export 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 | } |
no test coverage detected