fix(build): serve favicon + all res/ icons at their referenced /public paths

The static-copy step landed the android icons at dist/public/android/ (stripBase
dropped the res/ segment), never copied public/res/apple/ or public/favicon.ico at
all, and the manifest pointed at /res/android/ — so every PWA icon, apple-touch
icon, og:image, and the favicon 404'd on the live server.

Copy all of public/res -> dist/public/res and public/favicon.ico -> dist/public/,
and point manifest.json icons at ./public/res/android/ — matching the /public/res
and /public/favicon.ico paths index.html already uses. Verified in dist/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-07 20:28:40 -04:00
parent 45afc9ba7e
commit 4236621c7a
2 changed files with 23 additions and 14 deletions
+11 -2
View File
@@ -38,9 +38,18 @@ const copyFiles = {
rename: { stripBase: true },
},
{
src: 'public/res/android',
// All of public/res/ (android + apple icons, logos, svg) → dist/public/res/,
// matching the /public/res/... paths used by index.html and manifest.json.
// (The old android-only target stripped `res/` and landed at /public/android/,
// so every icon 404'd — apple/ + favicon weren't copied at all.)
src: 'public/res',
dest: 'public/',
rename: { stripBase: 2 },
rename: { stripBase: 1 },
},
{
src: 'public/favicon.ico',
dest: 'public/',
rename: { stripBase: 1 },
},
{
src: 'public/locales',