IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.
TypeScript
Keep the offline helper in Suspense so pages still prerender
Youssef67d6c78092f5
diff --git a/src/app/layout.tsx b/src/app/layout.tsxindex 87e3bfe..1747c5f 100644--- a/src/app/layout.tsx+++ b/src/app/layout.tsx@@ -1,3 +1,4 @@+import { Suspense } from "react";import type { Metadata, Viewport } from "next";import { Noto_Sans, Noto_Sans_Display } from "next/font/google";import "./globals.css";@@ -46,7 +47,10 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac<body>{children}<Analytics />- <Offline />+ {/* it reads the path, which the prerendered shell doesn't know yet */}+ <Suspense fallback={null}>+ <Offline />+ </Suspense></body></html>);