AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(frontend): environment aware favicon (#11431)
Ubbe52aac0957760
diff --git a/autogpt_platform/frontend/public/favicon-dev.ico b/autogpt_platform/frontend/public/favicon-dev.iconew file mode 100644index 0000000000..e6a1e70099Binary files /dev/null and b/autogpt_platform/frontend/public/favicon-dev.ico differdiff --git a/autogpt_platform/frontend/public/favicon-local.ico b/autogpt_platform/frontend/public/favicon-local.iconew file mode 100644index 0000000000..a0031e3267Binary files /dev/null and b/autogpt_platform/frontend/public/favicon-local.ico differdiff --git a/autogpt_platform/frontend/src/app/layout.tsx b/autogpt_platform/frontend/src/app/layout.tsxindex 15c36a868d..dd73303b9e 100644--- a/autogpt_platform/frontend/src/app/layout.tsx+++ b/autogpt_platform/frontend/src/app/layout.tsx@@ -10,6 +10,7 @@ import TallyPopupSimple from "@/components/molecules/TallyPoup/TallyPopup";import { Toaster } from "@/components/molecules/Toast/toaster";import { SetupAnalytics } from "@/services/analytics";import { VercelAnalyticsWrapper } from "@/services/analytics/VercelAnalyticsWrapper";+import { environment } from "@/services/environment";import { ReactQueryDevtools } from "@tanstack/react-query-devtools";import { headers } from "next/headers";@@ -25,6 +26,8 @@ export default async function RootLayout({}>) {const headersList = await headers();const host = headersList.get("host") || "";+ const isDev = environment.isDev();+ const isLocal = environment.isLocal();return (<html@@ -33,6 +36,16 @@ export default async function RootLayout({suppressHydrationWarning><head>+ <link+ rel="icon"+ href={+ isLocal+ ? "/favicon-local.ico"+ : isDev+ ? "/favicon-dev.ico"+ : "/favicon.ico"+ }+ /><SetupAnalyticshost={host}ga={{