Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/explicit-empty-favicon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tanstack/create": patch
---

Declare an empty favicon in React and Solid Start scaffolds so browsers do not request a missing favicon.ico.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const Route = <% if (hasContext) { %>createRootRouteWithContext<MyRouterC
},
],
links: [
{ rel: 'icon', href: 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22/%3E' },
{
rel: 'stylesheet',
href: appCss,
Expand Down Expand Up @@ -188,6 +189,7 @@ export const Route = <% if (hasContext) { %>createRootRouteWithContext<MyRouterC
},
],
links: [
{ rel: 'icon', href: 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22/%3E' },
{
rel: 'stylesheet',
href: appCss,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ import styleCss from "../styles.css?url";

export const Route = createRootRouteWithContext()({
head: () => ({
links: [{ rel: "stylesheet", href: styleCss }],
links: [
{ rel: "icon", href: "data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22/%3E" },
{ rel: "stylesheet", href: styleCss },
],
}),
shellComponent: RootComponent,
})
Expand Down Expand Up @@ -87,7 +90,10 @@ import styleCss from "../styles.css?url";

export const Route = createRootRouteWithContext()({
head: () => ({
links: [{ rel: "stylesheet", href: styleCss }],
links: [
{ rel: "icon", href: "data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22/%3E" },
{ rel: "stylesheet", href: styleCss },
],
}),
shellComponent: RootComponent,
})
Expand Down
Loading