Files
netbird-docs/next.config.mjs
Jack Carter e5da16cee6 fix: serve page props for API docs on client-side navigation (#900)
The /ipa/:path* -> /api/:path* redirect also matched Next.js data
requests (/_next/data/.../ipa/...), returning a 308 instead of page
props. Client-side navigations to API pages therefore lost pageProps,
leaving the sidebar method list collapsed and the tab title undefined
until a full reload. Skip the redirect when the x-nextjs-data header is
present so props fetches go through; browser visits to /ipa/* still get
the canonical redirect to /api/*.
2026-08-03 12:16:12 +02:00

35 KiB