Update HMR. Make page reload when __root.tsx file is changed.

This commit is contained in:
2026-03-22 12:09:24 +01:00
parent 49d6781170
commit c3e1341ff8
17 changed files with 60 additions and 258 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
import type { ServeOptions } from "bun";
import grabAppPort from "../../utils/grab-app-port";
import isDevelopment from "../../utils/is-development";
import bunextRequestHandler from "./bunext-req-handler";
import grabConfig from "../grab-config";
import _ from "lodash";
export default async function (): Promise<ServeOptions> {
export default async function (): Promise<Bun.Serve.Options<any>> {
const port = grabAppPort();
const development = isDevelopment();
@@ -20,5 +19,5 @@ export default async function (): Promise<ServeOptions> {
development,
websocket: config?.websocket,
..._.omit(config?.serverOptions || {}, ["fetch"]),
} as ServeOptions;
} as Bun.Serve.Options<any>;
}