This commit is contained in:
Rizky 2024-07-05 10:18:06 +07:00
parent 120f656bb4
commit a7354c0e35
2 changed files with 5 additions and 1 deletions

View File

@ -61,6 +61,8 @@ export const createServer = async () => {
req,
server,
handle,
serveStatic,
serveAPI,
wsHandler,
prasi,
});

View File

@ -31,6 +31,8 @@ export const g = global as unknown as {
server: Server;
handle: (req: Request) => Promise<Response | undefined>;
wsHandler: Record<string, WebSocketHandler<WSData>>;
serveStatic?: any;
serveAPI?: any;
prasi: { page_id?: string };
}) => Promise<Response | undefined>;
server_runtime: Record<
@ -61,7 +63,7 @@ export const g = global as unknown as {
syncronize: typeof syncronize;
static_cache: any;
route_cache_compressing: Set<string>;
route_cache: Record<string, {br?: any, gzip?: any}>;
route_cache: Record<string, { br?: any; gzip?: any }>;
code_index_compressing: Set<string>;
code_index_cache: Record<
string,