File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import LogoIcon from "@/components/icons/logo-icon.svg";
88import BannerContents from "@/components/banner" ;
99import Providers from "@/components/providers" ;
1010import { TocCTA } from "@/components/cta" ;
11+ import Scripts from "@/components/scripts" ;
1112import type { Metadata , ResolvingMetadata } from "next" ;
1213import { SpeedInsights } from "@vercel/speed-insights/next" ;
1314import "./globals.css" ;
@@ -101,6 +102,7 @@ export default async function RootLayout({ children }) {
101102 < OurLayout >
102103 < SpeedInsights />
103104 < Providers > { children } </ Providers >
105+ < Scripts />
104106 </ OurLayout >
105107 </ Layout >
106108 </ body >
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { Cards } from "nextra/components";
88
99<Cards num = { 2 } >
1010 <Cards.Card
11- image
1211 arrow
1312 title = " View"
1413 href = " /spicedb/getting-started/discovering-spicedb"
@@ -17,7 +16,7 @@ import { Cards } from "nextra/components";
1716 <h3 >SpiceDB Documentation</h3 >
1817 </div >
1918 </Cards.Card >
20- <Cards.Card image arrow title = " View" href = " /authzed/guides/picking-a-product" >
19+ <Cards.Card arrow title = " View" href = " /authzed/guides/picking-a-product" >
2120 <div className = " p-4" >
2221 <h3 >AuthZed Products Documentation</h3 >
2322 </div >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { usePathname, useSearchParams } from "next/navigation";
55import { Router } from "next/router" ;
66import Script from "next/script" ;
77import posthog from "posthog-js" ;
8- import { useEffect , useState } from "react" ;
8+ import { Suspense , useEffect , useState } from "react" ;
99
1010const isProd = process . env . NEXT_PUBLIC_VERCEL_ENV === "production" ;
1111const baseDir = process . env . NEXT_PUBLIC_BASE_DIR || "" ;
@@ -112,10 +112,10 @@ function Posthog() {
112112
113113export default function Scripts ( ) {
114114 return (
115- < div >
115+ < Suspense fallback = { < > </ > } >
116116 < Reo />
117117 < HubSpot />
118118 < Posthog />
119- </ div >
119+ </ Suspense >
120120 ) ;
121121}
You can’t perform that action at this time.
0 commit comments