diff --git a/bun.lockb b/bun.lockb index dc1b41c81..55de3ded1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 47f101409..f359a16ae 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -43,7 +43,7 @@ "memoizee": "^0.4.15", "next": "14.2.15", "next-themes": "^0.2.1", - "nuqs": "^1.17.4", + "nuqs": "^2.2.3", "object-hash": "^3.0.0", "openapi-types": "^12.1.3", "p-map": "^7.0.0", diff --git a/packages/gitbook/src/app/(site)/(content)/layout.tsx b/packages/gitbook/src/app/(site)/(content)/layout.tsx index 8018aa13f..363472233 100644 --- a/packages/gitbook/src/app/(site)/(content)/layout.tsx +++ b/packages/gitbook/src/app/(site)/(content)/layout.tsx @@ -1,6 +1,7 @@ import { CustomizationThemeMode } from '@gitbook/api'; import { Metadata, Viewport } from 'next'; import { headers } from 'next/headers'; +import { NuqsAdapter } from 'nuqs/adapters/next/app'; import React from 'react'; import * as ReactDOM from 'react-dom'; @@ -55,46 +56,48 @@ export default async function ContentLayout(props: { children: React.ReactNode } }); return ( - - + - {children} - + + {children} + - {scripts.length > 0 ? ( - <> - - {scripts.map(({ script }) => ( -