Skip to content

Commit aa027b2

Browse files
committed
fix: rename banner during ssr
1 parent 7ec6630 commit aa027b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/postgres-new/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type LayoutProps = PropsWithChildren
1818
export default function Layout({ children }: LayoutProps) {
1919
const { isPreview } = useApp()
2020
const isSmallBreakpoint = useBreakpoint('lg')
21-
const isNewDomain = location.hostname === 'database.build'
21+
const isNewDomain = typeof window !== 'undefined' && window.location.hostname === 'database.build'
2222

2323
return (
2424
<LazyMotion features={loadFramerFeatures}>

0 commit comments

Comments
 (0)