Skip to content

Commit

Permalink
Use new relic configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
boodland committed Aug 19, 2024
1 parent 67fb6eb commit c900116
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
import { Metadata } from 'next';
import { newRelicInit } from '../config/newRelic';

// Nextjs automatically includes for each route two default meta tags, charset and viewport
// https://nextjs.org/docs/app/building-your-application/optimizing/metadata#default-fields
export const metadata: Metadata = {
title: 'Bloom',
};

export default function RootLayout({
export default async function RootLayout({
// Layouts must accept a children prop.
// This will be populated with nested layouts or pages
children,
}: {
children: React.ReactNode;
}) {
const NewRelicScript = await newRelicInit();
return (
<html lang="en">
<body>{children}</body>
<body>
{children}
{NewRelicScript}
</body>
</html>
);
}

0 comments on commit c900116

Please sign in to comment.