diff --git a/apps/website/src/app/docs/packages/[package]/[version]/[item]/loading.tsx b/apps/website/src/app/docs/packages/[package]/[version]/[item]/loading.tsx
new file mode 100644
index 000000000..066281618
--- /dev/null
+++ b/apps/website/src/app/docs/packages/[package]/[version]/[item]/loading.tsx
@@ -0,0 +1,20 @@
+export default function Loading() {
+ return (
+
+ );
+}
diff --git a/apps/website/src/app/docs/packages/[package]/[version]/[item]/page.tsx b/apps/website/src/app/docs/packages/[package]/[version]/[item]/page.tsx
index ee134334a..0507c78b6 100644
--- a/apps/website/src/app/docs/packages/[package]/[version]/[item]/page.tsx
+++ b/apps/website/src/app/docs/packages/[package]/[version]/[item]/page.tsx
@@ -122,7 +122,7 @@ export async function generateStaticParams({ params: { package: packageName, ver
const modelJSON = await fetchModelJSON(packageName, version);
if (!modelJSON) {
- return [{ package: packageName, version, item: '' }];
+ return [{ item: '' }];
}
const model = addPackageToModel(new ApiModel(), modelJSON);
@@ -131,12 +131,10 @@ export async function generateStaticParams({ params: { package: packageName, ver
const entry = pkg?.entryPoints[0];
if (!entry) {
- return [{ package: packageName, version, item: '' }];
+ return [{ item: '' }];
}
return entry.members.map((member: ApiItem) => ({
- package: packageName,
- version,
item: `${member.displayName}${OVERLOAD_SEPARATOR}${member.kind}`,
}));
}