Skip to content

Commit 60999f3

Browse files
committed
work
1 parent ab05723 commit 60999f3

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class App<State> {
320320
options.onListen = createOnListen(this.config.basePath, options);
321321
}
322322

323-
const handler = await this.handler();
323+
const handler = this.handler();
324324
if (options.port) {
325325
await Deno.serve(options, handler);
326326
return;

src/app_test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Deno.test.ignore("FreshApp - finish setup", async () => {
424424

425425
setBuildCache(
426426
app,
427-
await ProdBuildCache.fromSnapshot({
427+
ProdBuildCache.fromSnapshot({
428428
...app.config,
429429
build: {
430430
outDir: "foo",

tests/test_utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function buildProd(app: App<unknown>) {
6767
app.config.build.outDir = outDir;
6868
const builder = new Builder({});
6969
await builder.build(app);
70-
const cache = await ProdBuildCache.fromSnapshot(
70+
const cache = ProdBuildCache.fromSnapshot(
7171
app.config,
7272
getIslandRegistry(app).size,
7373
);

www/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ await fsRoutes(app, {
1010
loadRoute: (path) => import(`./routes/${path}`),
1111
});
1212

13-
const handler = await app.handler();
14-
1513
export default {
16-
fetch: handler,
14+
fetch: app.handler(),
1715
} satisfies Deno.ServeDefaultExport;

0 commit comments

Comments
 (0)