Skip to content

Commit 3a18a7f

Browse files
committed
fix types
1 parent a76cb1f commit 3a18a7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bun.lockb

0 Bytes
Binary file not shown.

index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export class StaticRouters {
4646
bootstrapModules?: string[];
4747
context?: T;
4848
}
49-
) {
49+
): Promise<Response | null> {
5050
const { pathname, search } = new URL(request.url);
5151
const staticResponse = await serveFromDir({
5252
directory: this.buildDir,
5353
path: pathname,
5454
});
55-
if (staticResponse) return staticResponse;
55+
if (staticResponse) return new Response(staticResponse);
5656
const serverSide = this.server.match(request);
57-
if (!serverSide) return;
57+
if (!serverSide) return null;
5858
const clientSide = this.client.match(request);
5959
if (!clientSide)
6060
throw new TypeError(

0 commit comments

Comments
 (0)