@lexibase/rdx-next 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,7 +127,10 @@ async function selected(locale: string) {
127
127
  if (!project.localization!.locales.some(entry => entry.path === locale)) notFound()
128
128
  return getLocalizedProject(project, locale)
129
129
  }
130
- export async function generateStaticParams({ params }: { params: { locale: string } }) { return getProjectDocsPaths(await selected(params.locale)).map(slug => ({ slug: slug.split('/') })) }
130
+ export async function generateStaticParams({ params }: { params: { locale: string } }) {
131
+ const paths = getProjectDocsPaths(await selected(params.locale))
132
+ return [{ slug: [] }, ...paths.map(slug => ({ slug: slug.split('/') }))]
133
+ }
131
134
  export async function generateMetadata({ params }: { params: Promise<Params> }) { const { locale, slug } = await params; return getDocumentMetadata({ project: await selected(locale), slug }) }
132
135
  export default async function Page({ params }: { params: Promise<Params> }) { const { locale, slug } = await params; return <DocsPage project={await selected(locale)} slug={slug} /> }
133
136
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-next",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "The Next.js runtime for RDX documentation projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -82,8 +82,8 @@
82
82
  "react": "19.3.1",
83
83
  "react-dom": "19.3.1",
84
84
  "@rdx/typescript-config": "1.0.0",
85
- "@lexibase/rdx-ui": "3.5.2",
86
- "@rdx/eslint-config": "1.0.0"
85
+ "@rdx/eslint-config": "1.0.0",
86
+ "@lexibase/rdx-ui": "3.5.2"
87
87
  },
88
88
  "scripts": {
89
89
  "dev": "tsup src/index.ts src/runtime/index.tsx --format esm --dts --watch --external @lexibase/rdx-core --external @lexibase/rdx-types --external @lexibase/rdx-ui --external next --external react --external react-dom --external next-mdx-remote",