Refactor start and dev commands. Start in child processes. Handle errors better

This commit is contained in:
2026-04-17 08:47:36 +01:00
parent a5f25d522e
commit 9a427412f3
38 changed files with 706 additions and 224 deletions
+4
View File
@@ -53,6 +53,7 @@ export type BunextConfig = {
* from the router
*/
pages_exclude_patterns?: RegExp[];
max_logs?: number;
};
export type BunextConfigMiddlewareParams = {
req: Request;
@@ -314,3 +315,6 @@ export type BunextAPIRouteHandlerObjectReturn<T> = Response | (T & Pick<BunextAP
export type BunextAPIRouteHandler<T extends BunextAPIRouteJSONRes = {
[k: string]: any;
}> = (params: BunxRouteParams) => Promise<BunextAPIRouteHandlerObjectReturn<T>> | Response | BunextAPIRouteHandlerObjectReturn<T>;
export type BunSpawnOptions = Bun.SpawnOptions.SpawnOptions<"inherit", "inherit", "inherit"> & {
cmd: string[];
};