From 74b486139ded82e4f8e435b46c6b0194c6a4e3f0 Mon Sep 17 00:00:00 2001 From: Richard Roberson Date: Tue, 4 Feb 2025 03:18:20 -0700 Subject: [PATCH] Only show footer in production --- .env.template | 2 ++ src/app/layout.tsx | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index 84c9a61..9a3d88f 100644 --- a/.env.template +++ b/.env.template @@ -2,6 +2,8 @@ NEXT_PUBLIC_OPENAI_API_KEY=your_openai_api_key_here # OpenAI API Base URL (default) +# To use a local TTS model server, I suggest using https://github.com/remsky/Kokoro-FastAPI NEXT_PUBLIC_OPENAI_API_BASE=https://api.openai.com/v1 # Add other environment variables below as needed +NEXT_PUBLIC_NODE_ENV=development \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8543d0c..63be209 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -44,11 +44,14 @@ export const metadata: Metadata = { }, }; +const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production'; + export default function RootLayout({ children, }: { children: React.ReactNode; }) { + return ( @@ -62,7 +65,7 @@ export default function RootLayout({
{children}
-