From fce7100af42339e1682222db53feea5fa529cd80 Mon Sep 17 00:00:00 2001 From: Shinsina Date: Thu, 11 Jul 2024 15:44:41 -0500 Subject: [PATCH 1/2] Optimize images on images-statc.iracing.com --- astro.config.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index f125b03..aa8bc1f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,5 +17,8 @@ export default defineConfig({ prefetch: { defaultStrategy: 'viewport', prefetchAll: true + }, + image: { + domains: ['images-static.iracing.com'] } }); From 16b1b3e2bafffcfc78bc3d2988c11006f104e600 Mon Sep 17 00:00:00 2001 From: Shinsina Date: Thu, 11 Jul 2024 15:44:57 -0500 Subject: [PATCH 2/2] Increase image height from 100 to 175 to reflect actual sizing --- src/lib/components/subsession/header.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/subsession/header.astro b/src/lib/components/subsession/header.astro index 4399915..48d6014 100644 --- a/src/lib/components/subsession/header.astro +++ b/src/lib/components/subsession/header.astro @@ -11,7 +11,7 @@ const { series_logo, season_name, race_week_num, max_weeks } = subsession; src={`https://images-static.iracing.com/img/logos/series/${series_logo}`} alt="Series Logo" width={300} - height={100} + height={175} format="avif" loading="eager" />