We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec6630 commit aa027b2Copy full SHA for aa027b2
apps/postgres-new/components/layout.tsx
@@ -18,7 +18,7 @@ export type LayoutProps = PropsWithChildren
18
export default function Layout({ children }: LayoutProps) {
19
const { isPreview } = useApp()
20
const isSmallBreakpoint = useBreakpoint('lg')
21
- const isNewDomain = location.hostname === 'database.build'
+ const isNewDomain = typeof window !== 'undefined' && window.location.hostname === 'database.build'
22
23
return (
24
<LazyMotion features={loadFramerFeatures}>
0 commit comments