async function createRouterBuildInWorker(app, router, mode, configFile) {
	const sh = await import("../runtime/sh.js");
	const { fileURLToPath } = await import("url");
	await sh.default`node ${fileURLToPath(
		new URL("../bin/cli.mjs", import.meta.url).href,
	)} build --router=${router.name} ${mode ? `--mode=${mode}` : ""} ${configFile ? `--config=${configFile}` : ""}`;
}
@param {import("./app.js").App} app
@param {import("./router-mode.js").Router} router
@param {string} [mode]
@param {string} [configFile]