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 d074944
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 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)
})(nextProdConfig)

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

0 comments on commit d074944

Please sign in to comment.