From c54028835f8871be6f16e58b92b525db49f3804e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 03:38:48 +0000 Subject: [PATCH] fix(docs): resolve broken styles on subpath deployment - Updated `docs/next.config.mjs` to include `basePath` and `assetPrefix` for production builds to ensure correct asset loading on GitHub Pages under the `/typescript` subpath. - Modified root `next.config.ts` to exclude the `/typescript/` subpath from global security headers using a negative lookahead regex. - Added a permissive CSP meta tag to the documentation layout to allow Google Fonts and inline styles required by Nextra. --- docs/app/[[...mdxPath]]/layout.tsx | 7 ++++++- docs/next.config.mjs | 4 ++++ next.config.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/app/[[...mdxPath]]/layout.tsx b/docs/app/[[...mdxPath]]/layout.tsx index 8bf095e..19ab173 100644 --- a/docs/app/[[...mdxPath]]/layout.tsx +++ b/docs/app/[[...mdxPath]]/layout.tsx @@ -25,7 +25,12 @@ export default async function RootLayout({ children }: { children: ReactNode }) const pageMap = await getPageMap() return ( -
+
+ +