Open samyakb opened 3 weeks ago
Is this related to this PR ?
Use v2 example https://github.com/shuding/nextra/tree/main/examples/swr-site
Or v3 example https://github.com/shuding/nextra/tree/v3/examples/swr-site
Migration guide https://the-guild.dev/blog/nextra-3
I am using Nextra versions
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
After following the v2 Example, I am still getting 404 pages.
This is the directory structure I used, changed to locale to use en-US
than en
, but en
also didnt work.
src/pages
├── docs
│ ├── faqs.en-US.mdx
│ ├── frameworks.en-US.mdx
│ └── index.en-US.mdx
└── _meta.en-US.json
I am trying to add Nextra docs on subroute with i18n support, but the
_meta.en.json
or_meta.es.json
is not getting picked up by nextra.My next config is
My middleware code is
The middleware adds the locale and redirects the path if locale does not exist in path.
The
_meta.en.json
under Pages directory is like thisAnd the
But I am getting 404 page for
/en/docs
and/es/docs
The pages directory tree is this
Am I doing anything wrong here ?