From de6bfd8c00c8b95d760035c16ee1c14bb072ff1d Mon Sep 17 00:00:00 2001 From: Aymeric Rabot Date: Fri, 6 Mar 2026 18:52:01 -0500 Subject: [PATCH] Add react-scan and react-grab dev tools (development only) Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/editor/app/layout.tsx | 17 +++++ apps/editor/package.json | 2 + bun.lock | 146 ++++++++++++++++++++++++++++++++++++- 3 files changed, 162 insertions(+), 3 deletions(-) diff --git a/apps/editor/app/layout.tsx b/apps/editor/app/layout.tsx index 234cc565..ef3b645c 100644 --- a/apps/editor/app/layout.tsx +++ b/apps/editor/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from 'next' +import Script from 'next/script' import localFont from 'next/font/local' import { Barlow } from 'next/font/google' import { Analytics } from '@vercel/analytics/react' @@ -78,6 +79,22 @@ export default function RootLayout({ return ( + + {process.env.NODE_ENV === 'development' && ( + <> +