Skip to content

[docs] fix favicon and RSS logo URLs using public/ directory#1653

Open
henryqdineen wants to merge 1 commit into
facebook:mainfrom
henryqdineen:hqd-fix-favicon-public-dir
Open

[docs] fix favicon and RSS logo URLs using public/ directory#1653
henryqdineen wants to merge 1 commit into
facebook:mainfrom
henryqdineen:hqd-fix-favicon-public-dir

Conversation

@henryqdineen
Copy link
Copy Markdown
Collaborator

Follow-up to #1648, which appears not to be working as expected — the deployed site serves <link href="/assets/favicon-BDu8Z21d.svg"> but that URL returns 404.

Claude researched the @vitejs/plugin-rsc build pipeline and has a theory: the Vite asset cache may be shared between the scan build (write=false) and the actual build, causing emitFile() to only be called in the throw-away scan context. The actual RSC bundle would then never include the file as a Rollup asset, so copyServerAssetsToClient has nothing to copy to dist/public/assets/. This was not confirmed.

Fix: move favicon.svg and stylex-logo-small.svg to public/, which Waku copies verbatim to dist/public/ regardless of the asset pipeline. Hardcode the stable paths /favicon.svg and /stylex-logo-small.svg instead of using Vite asset imports.

Follow-up to facebook#1648, which appears not to be working as expected — the
deployed site serves `<link href="/assets/favicon-BDu8Z21d.svg">` but
that URL returns 404.

Claude researched the @vitejs/plugin-rsc build pipeline and has a
theory: the Vite asset cache may be shared between the scan build
(write=false) and the actual build, causing emitFile() to only be
called in the throw-away scan context. The actual RSC bundle would then
never include the file as a Rollup asset, so copyServerAssetsToClient
has nothing to copy to dist/public/assets/. This was not confirmed.

Fix: move favicon.svg and stylex-logo-small.svg to public/, which
Waku copies verbatim to dist/public/ regardless of the asset pipeline.
Hardcode the stable paths /favicon.svg and /stylex-logo-small.svg
instead of using Vite asset imports.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@henryqdineen is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant