Skip to content

Commit

Permalink
feat: add react scan in development
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Dec 5, 2024
1 parent 9bb735b commit 65ec6fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
{process.env.NODE_ENV === "development" ? (
<script
src="https://unpkg.com/react-scan/dist/auto.global.js"
async
/>
) : null}
</head>

<body className={inter.className}>
<div className="flex flex-col place-content-center bg-background text-text">
<Header />
Expand Down

0 comments on commit 65ec6fd

Please sign in to comment.