diff --git a/docker-compose.yml b/docker-compose.yml
index 902a150..61ea704 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -81,6 +81,8 @@ services:
R2_SECRET_ACCESS_KEY: ${R2_SECRET_ACCESS_KEY:-}
R2_BUCKET_NAME: ${R2_BUCKET_NAME:-qrmaster-menus}
R2_PUBLIC_URL: ${R2_PUBLIC_URL:-}
+ NEXT_PUBLIC_UMAMI_SRC: ${NEXT_PUBLIC_UMAMI_SRC:-}
+ NEXT_PUBLIC_UMAMI_ID: ${NEXT_PUBLIC_UMAMI_ID:-}
depends_on:
db:
condition: service_healthy
diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx
index 043b12c..b874031 100644
--- a/src/app/(main)/layout.tsx
+++ b/src/app/(main)/layout.tsx
@@ -18,13 +18,13 @@ export const metadata: Metadata = {
robots: isIndexable
? { index: true, follow: true }
: { index: false, follow: false },
- icons: {
- icon: [
- { url: '/favicon1.png', sizes: '2048x2048', type: 'image/png' },
- ],
- shortcut: '/favicon1.png',
- apple: '/favicon1.png',
- },
+ icons: {
+ icon: [
+ { url: '/favicon1.png', sizes: '2048x2048', type: 'image/png' },
+ ],
+ shortcut: '/favicon1.png',
+ apple: '/favicon1.png',
+ },
twitter: {
card: 'summary_large_image',
site: '@qrmaster',
@@ -63,9 +63,17 @@ export default function RootLayout({
{children}
+ {process.env.NEXT_PUBLIC_UMAMI_SRC && process.env.NEXT_PUBLIC_UMAMI_ID && (
+
+ )}