11---
22date : 2023-09-18T00:47:30.000Z
3- updated : 2025-09-18T19:55 :03.000Z
3+ updated : 2025-09-18T23:05 :03.000Z
44
55title : Favicon Generation with Astro
66image : ./favicon-generation-with-astro-teaser.png
@@ -103,8 +103,8 @@ const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' })
103103 <link rel="icon" href="/favicon.ico" sizes="32x32" />
104104 <link rel="icon" href={faviconSvg.src} type="image/svg+xml" />
105105 <link rel="manifest" href="/manifest.webmanifest" />
106-
107- // optional for old iOS versions (before iOS 15.4)
106+
107+ <!-- optional for old iOS versions (before iOS 15.4) -->
108108 <link rel="apple-touch-icon" href={appleTouchIcon.src} />
109109 {'...'}
110110 </head>
@@ -163,9 +163,7 @@ export const GET: APIRoute = async () => {
163163 }),
164164 {
165165 status: 200 ,
166- headers: {
167- ' Content-Type' : ' application/manifest+json'
168- }
166+ headers: { ' Content-Type' : ' application/manifest+json' }
169167 }
170168 )
171169}
@@ -261,8 +259,8 @@ Then adapt the strategy where your `head` references the absolute paths without
261259 <link rel="icon" href="/favicon.ico" sizes="32x32" />
262260 <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
263261 <link rel="manifest" href="/manifest.webmanifest" />
264-
265- // optional for old iOS versions (before iOS 15.4)
262+
263+ <!-- optional for old iOS versions (before iOS 15.4) -->
266264 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
267265 {'...'}
268266 </head>
@@ -284,9 +282,7 @@ export const GET: APIRoute = async () => {
284282
285283 return new Response (body , {
286284 status: 200 ,
287- headers: {
288- ' Content-Type' : ' image/svg+xml'
289- }
285+ headers: { ' Content-Type' : ' image/svg+xml' }
290286 })
291287}
292288```
@@ -311,9 +307,7 @@ export const GET: APIRoute = async () => {
311307
312308 return new Response (bytes , {
313309 status: 200 ,
314- headers: {
315- ' Content-Type' : ' image/png'
316- }
310+ headers: { ' Content-Type' : ' image/png' }
317311 })
318312}
319313```
0 commit comments