Skip to content

Commit

Permalink
build: skip hydration overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Mar 10, 2024
1 parent aab1d20 commit 788bf3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -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)

export default process.env.NODE_ENV === 'development'
? nextDevConfig
: nextProdConfig

0 comments on commit 788bf3a

Please sign in to comment.