Update dev server
This commit is contained in:
@@ -188,9 +188,6 @@ export default async function grabPageComponent(
|
||||
await serverPostBuildFn();
|
||||
return component_retried;
|
||||
}
|
||||
|
||||
global.BUNEXT_PAGES_SRC_WATCHER?.close();
|
||||
watcherEsbuildCTX();
|
||||
}
|
||||
|
||||
global.BUNEXT_REBUILD_RETRIES = 0;
|
||||
@@ -202,8 +199,7 @@ export default async function grabPageComponent(
|
||||
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({
|
||||
|
||||
@@ -7,6 +7,7 @@ import type {
|
||||
} from "../../../types";
|
||||
import grabPageModules from "./grab-page-modules";
|
||||
import _ from "lodash";
|
||||
import fullRebuild from "../full-rebuild";
|
||||
|
||||
type Params = {
|
||||
error?: any;
|
||||
@@ -83,6 +84,8 @@ export default async function grabPageErrorComponent({
|
||||
root_module,
|
||||
};
|
||||
} catch {
|
||||
fullRebuild();
|
||||
|
||||
const DefaultNotFound: FC = () => (
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user