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 -2
View File
@@ -1,4 +1,4 @@
import type { MatchedRoute, ServeOptions, Server, WebSocketHandler } from "bun";
import type { MatchedRoute, Server, WebSocketHandler } from "bun";
import type { FC, JSX, PropsWithChildren, ReactNode } from "react";
export type ServerProps = {
params: Record<string, string>;
@@ -47,7 +47,7 @@ export type BunextConfig = {
middleware?: (params: BunextConfigMiddlewareParams) => Promise<Response | Request | undefined> | Response | Request | undefined;
defaultCacheExpiry?: number;
websocket?: WebSocketHandler<any>;
serverOptions?: ServeOptions;
serverOptions?: Bun.Serve.Options<any>;
};
export type BunextConfigMiddlewareParams = {
req: Request;