We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76cb1f commit 3a18a7fCopy full SHA for 3a18a7f
bun.lockb
0 Bytes
index.tsx
@@ -46,15 +46,15 @@ export class StaticRouters {
46
bootstrapModules?: string[];
47
context?: T;
48
}
49
- ) {
+ ): Promise<Response | null> {
50
const { pathname, search } = new URL(request.url);
51
const staticResponse = await serveFromDir({
52
directory: this.buildDir,
53
path: pathname,
54
});
55
- if (staticResponse) return staticResponse;
+ if (staticResponse) return new Response(staticResponse);
56
const serverSide = this.server.match(request);
57
- if (!serverSide) return;
+ if (!serverSide) return null;
58
const clientSide = this.client.match(request);
59
if (!clientSide)
60
throw new TypeError(
0 commit comments