Skip to content

Commit

Permalink
conditionally inject toolbar (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 authored Dec 13, 2024
1 parent 3c66284 commit 8cd7296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/partial-prerendering/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function RootLayout({
</div>
</div>
</div>
<VercelToolbar />
</body>
</html>
);
Expand Down
3 changes: 2 additions & 1 deletion examples/summer-sale/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ export default function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const shouldInjectToolbar = process.env.NODE_ENV === 'development';
return (
<html lang="en">
<body className="">
{children}

<VercelToolbar />
{shouldInjectToolbar && <VercelToolbar />}
<Analytics />
</body>
</html>
Expand Down

0 comments on commit 8cd7296

Please sign in to comment.