Compare commits

...

1 Commits

Author SHA1 Message Date
Lluis Agusti
2f133eedf3 chore: changes 2025-11-26 23:44:15 +07:00

View File

@@ -27,8 +27,22 @@ export default async function RootLayout({
}>) { }>) {
const headersList = await headers(); const headersList = await headers();
const host = headersList.get("host") || ""; const host = headersList.get("host") || "";
const isDev = environment.isDev(); const appEnv = environment.getAppEnv();
const isLocal = environment.isLocal();
// Determine favicon based on app environment
const getFaviconHref = () => {
switch (appEnv) {
case "local":
return "/favicon-local.ico";
case "dev":
return "/favicon-dev.ico";
case "prod":
default:
return "/favicon.ico";
}
};
const faviconHref = getFaviconHref();
return ( return (
<html <html
@@ -37,16 +51,9 @@ export default async function RootLayout({
suppressHydrationWarning suppressHydrationWarning
> >
<head> <head>
<link <link rel="icon" href={faviconHref} />
rel="icon" <link rel="shortcut icon" href={faviconHref} />
href={ <link rel="apple-touch-icon" href={faviconHref} />
isLocal
? "/favicon-local.ico"
: isDev
? "/favicon-dev.ico"
: "/favicon.ico"
}
/>
<SetupAnalytics <SetupAnalytics
host={host} host={host}
ga={{ ga={{