Update dev server

This commit is contained in:
2026-08-14 12:59:20 +01:00
parent f590deb11b
commit 247a64c873
5 changed files with 8 additions and 10 deletions
+1 -4
View File
@@ -131,8 +131,6 @@ export default async function grabPageComponent(params) {
await serverPostBuildFn();
return component_retried;
}
global.BUNEXT_PAGES_SRC_WATCHER?.close();
watcherEsbuildCTX();
}
global.BUNEXT_REBUILD_RETRIES = 0;
}
@@ -142,8 +140,7 @@ export default async function grabPageComponent(params) {
else {
log.error(`Error Grabbing Page Component: ${error.message}`);
log.error(`Page: ${passed_file_path || url?.pathname}`);
global.BUNEXT_PAGES_SRC_WATCHER?.close();
watcherEsbuildCTX();
fullRebuild();
}
return await grabPageErrorComponent({
error,
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import grabDirNames from "../../../utils/grab-dir-names";
import grabPageModules from "./grab-page-modules";
import _ from "lodash";
import fullRebuild from "../full-rebuild";
export default async function grabPageErrorComponent({ error, routeParams, is404, url, }) {
const router = global.BUNEXT_ROUTER;
const { BUNX_ROOT_500_PRESET_COMPONENT, BUNX_ROOT_404_PRESET_COMPONENT } = grabDirNames();
@@ -51,6 +52,7 @@ export default async function grabPageErrorComponent({ error, routeParams, is404
};
}
catch {
fullRebuild();
const DefaultNotFound = () => (_jsxs("div", { style: {
width: "100vw",
height: "100vh",