Nextra Sidebar links ignore /docs and link to root instead [closed]

1 week ago 6
ARTICLE AD BOX

I'm using Next.js App Router with Nextra and I want to have two separate sections in my app:

/ => a simple Hero Section etc.

/docs/... => my full Nextra docs

Folder Structure:

|-- app | `-- docs | |-- [[...mdxPath]] | | `-- page.tsx | |-- globals.css | |-- layout.tsx | `-- logo.svg |-- content | |-- installation | | `-- react.mdx | |-- contributing.mdx | |-- _meta.ts | `-- index.mdx |-- mdx-components.js |-- package.json |-- pnpm-lock.yaml |-- postcss.config.mjs `-- tsconfig.json

The documentation loads correctly when I manually visit "/docs/installation/react/".

However, the sidebar links generated by Nextra point to "/installation" instead of "/docs/installation/react".

How do I configure Nextra so that all generated sidebar links correctly include the "/docs" prefix?

Read Entire Article