diff --git a/apps/website/next.config.mjs b/apps/website/next.config.mjs index 81ffc3f..22780e2 100644 --- a/apps/website/next.config.mjs +++ b/apps/website/next.config.mjs @@ -1,8 +1,12 @@ import { withHydrationOverlay } from '@builder.io/react-hydration-overlay/next' /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextProdConfig = {} -export default withHydrationOverlay({ +const nextDevConfig = withHydrationOverlay({ appRootSelector: 'main', -})(nextConfig) +})(nextProdConfig) + +export default process.env.NODE_ENV === 'development' + ? nextDevConfig + : nextProdConfig