Skip to content

Commit 0ff9ebc

Browse files
committed
fix(shell-docs): collapse legacy /frontend-actions into /frontend-tools
content/docs/frontend-actions.mdx was a 33-line stub from when the feature was called "Frontend Actions." The product API is now exclusively useFrontendTool, the canonical page is /frontend-tools (1967 bytes, snippet_cell-driven, in the App Control sidebar section), and the orphan stub had no entry in any meta.json — it only rendered if you typed /frontend-actions directly. Per the IA analysis: "redirect or delete; pick one." Picked both: delete the orphan file + add a 301 redirect /frontend-actions → /frontend-tools so any external link (search results, blog posts, customer docs) lands cleanly on the canonical page. Other 'frontend-actions' references in the repo are stable HTML anchor IDs (`id="frontend-actions-example"` in 12 integration `frontend-tools.mdx` files) and external links to the legacy docs.copilotkit.ai site — neither breaks.
1 parent 0c70c33 commit 0ff9ebc

2 files changed

Lines changed: 22 additions & 41 deletions

File tree

showcase/shell-docs/next.config.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@ if (!process.env.NEXT_PUBLIC_SHELL_URL) {
4646
);
4747
}
4848

49-
const nextConfig: NextConfig = {};
49+
const nextConfig: NextConfig = {
50+
// Permanent redirects for legacy URL slugs that have been renamed or
51+
// collapsed into a canonical page. Each entry exists because at least
52+
// one external link (search-engine result, blog post, customer doc)
53+
// is known to point at the old slug; we'd rather 301 cleanly than
54+
// 404 the visitor.
55+
async redirects() {
56+
return [
57+
// /frontend-actions was the original name for this page; the
58+
// feature is now exposed exclusively as `useFrontendTool`, the
59+
// page is titled "Frontend Tools" and lives at /frontend-tools.
60+
// The old MDX file at content/docs/frontend-actions.mdx was a
61+
// stub orphan unreachable from the sidebar; it's been deleted
62+
// alongside this redirect.
63+
{
64+
source: "/frontend-actions",
65+
destination: "/frontend-tools",
66+
permanent: true,
67+
},
68+
];
69+
},
70+
};
5071

5172
export default nextConfig;

showcase/shell-docs/src/content/docs/frontend-actions.mdx

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)