From c7ef7eaea1bd0c41bc6170a68495fe82f4281579 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Fri, 18 Oct 2024 10:10:48 +0800 Subject: [PATCH] feat: add dynamic footer injection via environment variable Enhance layout flexibility by allowing a dynamic footer to be injected via an environment variable, enabling easier customization and updates without modifying the core layout code. --- app/layout.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index feed3aa..8935ae7 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -56,6 +56,11 @@ export default function RootLayout({ ) : null } + {process.env.FOOTER_INJECT && ( +
+ )} )