refactor: use manifest variable name (#1902)

Previously, the `routes` variable name was used. This change makes more
sense as the variable has the `Manifest` type.
This commit is contained in:
Asher Gomez
2023-10-11 10:03:08 +11:00
committed by GitHub
parent ded23e0a94
commit 6ce39b8cee
18 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
const TEST_CONFIG_SERVER = Deno.env.get("TEST_CONFIG_SERVER") === "true";
const onListen = (params: { hostname: string; port: number }) => {
@@ -17,7 +17,7 @@ const onListen2 = (params: { hostname: string; port: number }) => {
console.log(`http://localhost:${params.port}`);
};
await start(routes, {
await start(manifest, {
server: {
onListen: TEST_CONFIG_SERVER ? onListen2 : undefined,
},