diff --git a/init/src/init.ts b/init/src/init.ts index 48190a13..793230fd 100644 --- a/init/src/init.ts +++ b/init/src/init.ts @@ -392,12 +392,14 @@ ${GRADIENT_CSS}`; `; await writeFile("static/logo.svg", STATIC_LOGO); - await writeFile( - "static/favicon.ico", - await Deno.readFile( - new URL(import.meta.resolve("./assets/favicon.ico")), - ), - ); + + 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. + } const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh"; import { define, type State } from "./utils.ts";