MCPcopy Create free account
hub / github.com/MarsWang42/Awel / spawnDevServer

Function spawnDevServer

packages/cli/src/subprocess.ts:195–202  ·  view source on GitHub ↗
(opts: { port: number; cwd: string })

Source from the content-addressed store, hash-verified

193 * Spawn the dev server. Called once from CLI entry point.
194 */
195export async function spawnDevServer(opts: { port: number; cwd: string }): Promise<void> {
196 state.port = opts.port;
197 state.cwd = opts.cwd;
198 state.restartCount = 0;
199
200 awel.log('Starting your Next.js app...');
201 await doSpawn();
202}
203
204/**
205 * Restart the dev server. Sends SIGTERM, waits for exit, then spawns a new one.

Callers 1

index.tsFile · 0.85

Calls 1

doSpawnFunction · 0.85

Tested by

no test coverage detected