Update excluded pages paths logic. Add HMR retries on errors.

This commit is contained in:
2026-04-12 05:47:12 +01:00
parent e0c2ab5872
commit 532d0d6b56
29 changed files with 168 additions and 65 deletions
+10 -5
View File
@@ -49,10 +49,10 @@ export type PageModule = {
};
export type BunextConfig = {
distDir?: string;
assetsPrefix?: string;
dist_dir?: string;
assets_prefix?: string;
origin?: string;
globalVars?: { [k: string]: any };
global_vars?: { [k: string]: any };
port?: number;
development?: boolean;
middleware?: (
@@ -62,9 +62,14 @@ export type BunextConfig = {
| Response
| Request
| undefined;
defaultCacheExpiry?: number;
default_cache_expiry?: number;
websocket?: WebSocketHandler<any>;
serverOptions?: Omit<Bun.Serve.Options<any>, "fetch" | "routes">;
server_options?: Omit<Bun.Serve.Options<any>, "fetch" | "routes">;
/**
* These are patterns in the pages to exclude
* from the router
*/
pages_exclude_patterns?: RegExp[];
};
export type BunextConfigMiddlewareParams = {