diff --git a/src/app/(main)/NavBar.tsx b/src/app/(main)/NavBar.tsx
index 08007b1c4..034047444 100644
--- a/src/app/(main)/NavBar.tsx
+++ b/src/app/(main)/NavBar.tsx
@@ -71,7 +71,7 @@ export function NavBar() {
- umami
+ {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}
{links.map(({ url, label }) => {
diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx
index 0ecce22cd..d472f5c12 100644
--- a/src/app/(main)/layout.tsx
+++ b/src/app/(main)/layout.tsx
@@ -21,7 +21,7 @@ export default function ({ children }) {
export const metadata: Metadata = {
title: {
- template: '%s | Umami',
- default: 'Umami',
+ template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
+ default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
},
};
diff --git a/src/app/(main)/settings/layout.tsx b/src/app/(main)/settings/layout.tsx
index 573897d5e..165ae1afe 100644
--- a/src/app/(main)/settings/layout.tsx
+++ b/src/app/(main)/settings/layout.tsx
@@ -11,7 +11,7 @@ export default function ({ children }) {
export const metadata: Metadata = {
title: {
- template: '%s | Settings | Umami',
- default: 'Settings | Umami',
+ template: `%s | Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
+ default: `Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
},
};
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 33ae9fa99..c483453ea 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -33,7 +33,7 @@ export default function ({ children }) {
export const metadata: Metadata = {
title: {
- template: '%s | Umami',
- default: 'Umami',
+ template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
+ default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
},
};
diff --git a/src/app/login/LoginForm.tsx b/src/app/login/LoginForm.tsx
index 28d79458c..f250c1661 100644
--- a/src/app/login/LoginForm.tsx
+++ b/src/app/login/LoginForm.tsx
@@ -39,7 +39,7 @@ export function LoginForm() {
-
umami
+
{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}