- App.jsx: gate ReactQueryDevtools behind import.meta.env.DEV via lazy dynamic import so the devtools floating button (red flower) never ships in prod. - librechat.yaml + compose.prod.yml: OIDC/model iconURL & OPENID_IMAGE_URL hanzo.ai/logo/icon.svg (404) -> hanzo.chat/assets/logo.svg (served, canonical). - index.html: add scalable SVG favicon (canonical blocky-H) as primary icon. - post-build.cjs: copy favicon.ico into dist root so /favicon.ico serves. - add real multi-size favicon.ico generated from @hanzo/brand favicon (blocky-H). logo.svg/favicons already match @hanzo/brand canonical blocky-H byte-for-byte; prod was serving a stale dist (title 'Chat', no assets) -> fresh build fixes.
16 lines
468 B
JavaScript
16 lines
468 B
JavaScript
const fs = require('fs-extra');
|
|
|
|
async function postBuild() {
|
|
try {
|
|
await fs.copy('public/assets', 'dist/assets');
|
|
await fs.copy('public/robots.txt', 'dist/robots.txt');
|
|
await fs.copy('public/favicon.ico', 'dist/favicon.ico');
|
|
console.log('✅ PWA icons, favicon.ico, and robots.txt copied successfully. Glob pattern warnings resolved.');
|
|
} catch (err) {
|
|
console.error('❌ Error copying files:', err);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
postBuild();
|