t3code icon indicating copy to clipboard operation
t3code copied to clipboard

monorepo projects do not resolve nested app favicons

Open ponbac opened this issue 8 months ago • 5 comments

When a monorepo root is added as a project, /api/project-favicon only checks the repo root and a few fixed source paths. If the actual app lives under apps/*, the sidebar falls back to the generic folder icon even when that app has a valid favicon.

Repro:

  1. Create a monorepo with an app under apps/web.
  2. Add a valid favicon such as apps/web/public/favicon.svg.
  3. Add the monorepo root as the project in t3code.

Expected: If no root favicon exists, t3code should search common nested workspace roots such as apps/* and use the first valid favicon it finds.

ponbac avatar Mar 13 '26 11:03 ponbac

One problem here is it must account for multiple apps/favicons. ideally you can select one

jakeleventhal avatar Jun 28 '26 15:06 jakeleventhal

This would be very helpful. I have a monorepo with a site at /site/favicon.png and it's not being found for my project

TheMarstonConnell avatar Aug 29 '26 02:08 TheMarstonConnell

This would be very helpful. I have a monorepo with a site at /site/favicon.png and it's not being found for my project

There's an option in the project settings in the recent nightlies to select an icon path within the repo. Unsure if this made it to the stable release yet, though.

Image Image

fkxr-dev avatar Aug 29 '26 10:08 fkxr-dev

nice yeah not in the stable release, good to know it's coming though

TheMarstonConnell avatar Aug 29 '26 17:08 TheMarstonConnell

[!NOTE] 🤖 GPT-6 Astra (preview) responding on behalf of Theo

This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened.

Closing this because the nested-icon use case now has an explicit setting in stable 0.0.38. In project settings, use Project icon, then Choose file, and select apps/web/public/favicon.svg. Automatic recursive discovery, including which app wins in a monorepo, remains a separate proposal for Ideas.

t3dotgg avatar Sep 04 '26 02:09 t3dotgg