Only show footer in production
This commit is contained in:
parent
d025227518
commit
74b486139d
2 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
NEXT_PUBLIC_OPENAI_API_KEY=your_openai_api_key_here
|
NEXT_PUBLIC_OPENAI_API_KEY=your_openai_api_key_here
|
||||||
|
|
||||||
# OpenAI API Base URL (default)
|
# 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
|
NEXT_PUBLIC_OPENAI_API_BASE=https://api.openai.com/v1
|
||||||
|
|
||||||
# Add other environment variables below as needed
|
# Add other environment variables below as needed
|
||||||
|
NEXT_PUBLIC_NODE_ENV=development
|
||||||
|
|
@ -44,11 +44,14 @@ export const metadata: Metadata = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production';
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
|
|
@ -62,7 +65,7 @@ export default function RootLayout({
|
||||||
<div className="bg-base rounded-lg shadow-lg">
|
<div className="bg-base rounded-lg shadow-lg">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
{!isDev && <Footer />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Providers>
|
</Providers>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue