Skip to content

fix: add missing favicon.ico to workflow-vite - #904

Merged
jordan-a-young merged 5 commits into
masterfrom
fix/workflow-vite-favicon
Sep 22, 2026
Merged

jordan-a-young merged 5 commits into
masterfrom
fix/workflow-vite-favicon

Conversation

@jordan-a-young

Copy link
Copy Markdown
Member

Problem

The generateIndexHtml function in vite.config.js includes a fallback to ./public/favicon.ico within the package when no project-level favicon exists. However, that file was never actually included in the package, so the fallback always resolved to a broken node_modules path like:

<link rel="icon" href="/node_modules/@availity/workflow-vite/public/favicon.ico">

This path doesn't resolve correctly in built output, so apps without their own favicon.ico got no favicon.

Fix

Copy the existing favicon.ico from packages/workflow/public/ into packages/workflow-vite/public/. The path logic in generateIndexHtml already handles this correctly — it just needed the file to be there.

Behavior After Fix

  • Apps with their own project/app/favicon.ico → unchanged, uses their file
  • Apps without one → falls back to the bundled favicon from the package (32K ICO, 64x64 and 32x32)

The fallback favicon path in generateIndexHtml pointed to
./public/favicon.ico within the package, but the file was never
included. This caused the generated index.html to reference a
node_modules path that doesn't resolve correctly in built output.

Copied from packages/workflow/public/favicon.ico.
@jordan-a-young
jordan-a-young force-pushed the fix/workflow-vite-favicon branch from ae8cf4e to 2af836d Compare September 21, 2026 21:58
@jordan-a-young
jordan-a-young merged commit e36760d into master Sep 22, 2026
5 checks passed
@jordan-a-young
jordan-a-young deleted the fix/workflow-vite-favicon branch September 22, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant