Skip to content

Commit 607b670

Browse files
JoeMattclaude
andcommitted
perf: convert large PNG screenshots to WebP, fix Lighthouse job summary crash
- Convert tvos-pause.png (516KB→27KB), tvos-sources.png (514KB→41KB), tvos-settings.png (72KB→15KB), iphone3-emu.png (191KB→38KB) to WebP - Update page.tsx imports to use .webp variants - Fix site-audit Lighthouse "Write job summary" step crashing with exit 1 when no report URL is available (&&-chain with set -e; use if/fi instead) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a405f6a commit 607b670

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

.github/workflows/site-audit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ jobs:
237237
echo "| Best Practices | ${B:-–} | $(score_icon $B 80) |" >> $GITHUB_STEP_SUMMARY
238238
echo "| SEO | ${S:-–} | $(score_icon $S 90) |" >> $GITHUB_STEP_SUMMARY
239239
URL="${{ steps.scores.outputs.report_url }}"
240-
[ -n "$URL" ] && echo "" >> $GITHUB_STEP_SUMMARY && echo "[View full Lighthouse report]($URL)" >> $GITHUB_STEP_SUMMARY
240+
if [ -n "$URL" ]; then
241+
echo "" >> $GITHUB_STEP_SUMMARY
242+
echo "[View full Lighthouse report]($URL)" >> $GITHUB_STEP_SUMMARY
243+
fi
241244
242245
# ──────────────────────────────────────────────────────────
243246
# Security Scan — main / schedule / dispatch only

src/app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Metadata } from 'next';
22
import Image from 'next/image';
33
import iphone1 from '@/images/screenshots/ios/iphone1-library.jpg';
44
import iphone2 from '@/images/screenshots/ios/iphone2-search.jpg';
5-
import iphone3 from '@/images/screenshots/ios/iphone3-emu.png';
5+
import iphone3 from '@/images/screenshots/ios/iphone3-emu.webp';
66
import ipad1 from '@/images/screenshots/ipad/ipad1-library.jpg';
77
import ipad2 from '@/images/screenshots/ipad/ipad2-search.jpg';
88

@@ -14,9 +14,9 @@ export const metadata: Metadata = {
1414
import DownloadSection from '@/components/DownloadSection';
1515
import SocialButton, { DiscordIcon, XIcon, BmcIcon, PatreonIcon } from '@/components/SocialButton';
1616
import Features from '@/components/Features';
17-
import tvos1 from '@/images/screenshots/tvos/tvos-pause.png';
18-
import tvos2 from '@/images/screenshots/tvos/tvos-settings.png';
19-
import tvos3 from '@/images/screenshots/tvos/tvos-sources.png';
17+
import tvos1 from '@/images/screenshots/tvos/tvos-pause.webp';
18+
import tvos2 from '@/images/screenshots/tvos/tvos-settings.webp';
19+
import tvos3 from '@/images/screenshots/tvos/tvos-sources.webp';
2020

2121
export default function Home() {
2222
return (
37.9 KB
Loading
27 KB
Loading
15 KB
Loading
41.3 KB
Loading

0 commit comments

Comments
 (0)