From ffd806fd755321d871defce4f0c3004a0a806084 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Tue, 22 Oct 2024 11:53:39 -0400 Subject: [PATCH] only render script on prod --- Dockerfile | 1 + app/layout.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5e4d56..2542bb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ ARG NEXT_PUBLIC_CONVEX_URL ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production +ENV NEXT_PUBLIC_ENABLE_UNAMI=true RUN npm run build diff --git a/app/layout.tsx b/app/layout.tsx index df60a17..a9d8929 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -24,9 +24,13 @@ export default function RootLayout({ }>) { return ( - + {process.env.NEXT_PUBLIC_ENABLE_UNAMI === "true" && ( +