File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 22NEXT_PUBLIC_OPENAI_API_KEY = your_openai_api_key_here
33
44# OpenAI API Base URL (default)
5+ # To use a local TTS model server, I suggest using https://github.com/remsky/Kokoro-FastAPI
56NEXT_PUBLIC_OPENAI_API_BASE = https://api.openai.com/v1
67
78# Add other environment variables below as needed
9+ NEXT_PUBLIC_NODE_ENV = development
Original file line number Diff line number Diff line change @@ -44,11 +44,14 @@ export const metadata: Metadata = {
4444 } ,
4545} ;
4646
47+ const isDev = process . env . NEXT_PUBLIC_NODE_ENV !== 'production' ;
48+
4749export default function RootLayout ( {
4850 children,
4951} : {
5052 children : React . ReactNode ;
5153} ) {
54+
5255 return (
5356 < html lang = "en" suppressHydrationWarning >
5457 < head >
@@ -62,7 +65,7 @@ export default function RootLayout({
6265 < div className = "bg-base rounded-lg shadow-lg" >
6366 { children }
6467 </ div >
65- < Footer />
68+ { ! isDev && < Footer /> }
6669 </ div >
6770 </ div >
6871 </ Providers >
You can’t perform that action at this time.
0 commit comments