diff --git a/init/src/init.ts b/init/src/init.ts index 4db8de029f0..e6e59151e47 100644 --- a/init/src/init.ts +++ b/init/src/init.ts @@ -391,14 +391,12 @@ ${GRADIENT_CSS}`; `; await writeFile("static/logo.svg", STATIC_LOGO); - - try { - const res = await fetch("https://fresh.deno.dev/favicon.ico"); - const buf = await res.arrayBuffer(); - await writeFile("static/favicon.ico", new Uint8Array(buf)); - } catch { - // Skip this and be silent if there is a network issue. - } + await writeFile( + "static/favicon.ico", + await Deno.readFile( + new URL(import.meta.resolve("../../www/static/favicon.ico")), + ), + ); const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh"; import { define, type State } from "./utils.ts";