Refactor start and dev commands. Start in child processes. Handle errors better
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { log } from "../../utils/log";
|
||||
import allPagesESBuildContextBundler from "../bundler/all-pages-esbuild-context-bundler";
|
||||
import pagesSSRBundler from "../bundler/pages-ssr-bundler";
|
||||
import serverPostBuildFn from "./server-post-build-fn";
|
||||
import watcherEsbuildCTX from "./watcher-esbuild-ctx";
|
||||
|
||||
@@ -21,6 +22,8 @@ export default async function fullRebuild(params?: { msg?: string }) {
|
||||
await global.SSR_BUNDLER_CTX?.dispose();
|
||||
global.SSR_BUNDLER_CTX = undefined;
|
||||
|
||||
await pagesSSRBundler();
|
||||
|
||||
allPagesESBuildContextBundler({
|
||||
post_build_fn: () => {
|
||||
serverPostBuildFn();
|
||||
|
||||
Reference in New Issue
Block a user