From 5f2133e0806a40877e5736410d30b9f9c78d4bcb Mon Sep 17 00:00:00 2001 From: Ryota Ikezawa Date: Sat, 3 Jan 2026 17:08:28 +0900 Subject: [PATCH] feat: Add favicon and OG image, fix publicDir config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add favicon.svg with chart emoji (📊) - Add og-image.svg (1200x630) for social sharing - Fix vite.config.ts publicDir: public-static → public - Update og:image meta tags to reference SVG - Add fallback font metrics to minimize CLS - Update .gitignore to allow public/*.svg 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitignore | 3 ++- public/favicon.svg | 4 ++++ public/og-image.svg | 33 +++++++++++++++++++++++++++++++++ src/client/index.html | 17 +++++++++++++---- vite.config.ts | 2 +- 5 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 public/favicon.svg create mode 100644 public/og-image.svg diff --git a/.gitignore b/.gitignore index a3179f5..0feade1 100644 --- a/.gitignore +++ b/.gitignore @@ -34,8 +34,9 @@ direct-*.html *-test.svg test-output-*.svg test-results-*.md -*.svg +/*.svg svg-preview.html +!public/*.svg # Lighthouse CI .lighthouseci/ diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..71d6dcf --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,4 @@ + + + 📊 + diff --git a/public/og-image.svg b/public/og-image.svg new file mode 100644 index 0000000..6ff81f9 --- /dev/null +++ b/public/og-image.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + 📊 + + + DevCard + + + GitHub Readme Stats Generator + + + + + + + + + devcard.pavegy.workers.dev + diff --git a/src/client/index.html b/src/client/index.html index 3b0ff46..d74b190 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -19,7 +19,7 @@ - + @@ -32,7 +32,7 @@ - + @@ -124,9 +124,18 @@ - + diff --git a/vite.config.ts b/vite.config.ts index be28eaa..4722a24 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import path from 'path'; export default defineConfig({ plugins: [react()], root: 'src/client', - publicDir: '../../public-static', + publicDir: '../../public', build: { outDir: '../../dist', emptyOutDir: true,