Hello, I am trying to modify the starter project at https://github.com/robotostudio/turbo-start-sanity to be statically prerendered. The project in question is in the apps/web directory. Each time the page loads, the navbar is loaded in with a skeleton. I want it to be statically rendered. I tried getting rid of the <Suspense> surrounding the <Navbar> component and moving the sanityFetch call into layout.tsx, but it doesn't seem to be working. What am I missing?
#Can't Get Page to Be Statically Prerendered
1 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
In that scenario you can’t.
They’re turning the whole app dynamic by calling draftMode() in the root layout, and this function is a dynamic API, meaning it’ll force you into dynamic rendering.
(await draftMode()).isEnabled…
Also, navbar seems to be fetching the latest data on every request, and i believe that’s the expected behavior they wanted it to have