Skip to content

Commit

Permalink
feat: add dynamic footer injection via environment variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccbikai committed Oct 18, 2024
1 parent 7687207 commit c7ef7ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default function RootLayout({
)
: null
}
{process.env.FOOTER_INJECT && (
<div
dangerouslySetInnerHTML={{ __html: process.env.FOOTER_INJECT }}
/>
)}
</body>
</html>
)
Expand Down

0 comments on commit c7ef7ea

Please sign in to comment.