Skip to content

Commit b3cd0ce

Browse files
DEV-277 Add redirects for agent framework documentation paths (#654)
* Add redirects for agent framework documentation paths Redirect old /home/* paths to new /guides/agent-frameworks/* structure: - langchain/use-arcade-tools - langchain/user-auth-interrupts - oai-agents/user-auth-interrupts - mastra/user-auth-interrupts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove duplicate oai-agents redirect Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove duplicate langchain/use-arcade-tools redirect Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rachel Lee Nabors <nearestnabors@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 166870d commit b3cd0ce

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

next.config.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@ const nextConfig: NextConfig = withLlmsTxt({
2424
async redirects() {
2525
return [
2626
// Old /home/* paths to new structure
27+
{
28+
source: "/:locale/home/langchain/use-arcade-tools",
29+
destination:
30+
"/:locale/guides/agent-frameworks/langchain/use-arcade-tools",
31+
permanent: true,
32+
},
33+
{
34+
source: "/:locale/home/langchain/user-auth-interrupts",
35+
destination:
36+
"/:locale/guides/agent-frameworks/langchain/user-auth-interrupts",
37+
permanent: true,
38+
},
39+
{
40+
source: "/:locale/home/oai-agents/user-auth-interrupts",
41+
destination:
42+
"/:locale/guides/agent-frameworks/openai-agents/user-auth-interrupts",
43+
permanent: true,
44+
},
45+
{
46+
source: "/:locale/home/mastra/user-auth-interrupts",
47+
destination:
48+
"/:locale/guides/agent-frameworks/mastra/user-auth-interrupts",
49+
permanent: true,
50+
},
2751
{
2852
source: "/:locale/home/build-tools/server-level-vs-tool-level-auth",
2953
destination: "/:locale/learn/server-level-vs-tool-level-auth",
@@ -238,12 +262,6 @@ const nextConfig: NextConfig = withLlmsTxt({
238262
"/:locale/guides/agent-frameworks/langchain/auth-langchain-tools",
239263
permanent: true,
240264
},
241-
{
242-
source: "/:locale/home/langchain/use-arcade-tools",
243-
destination:
244-
"/:locale/guides/agent-frameworks/langchain/use-arcade-tools",
245-
permanent: true,
246-
},
247265
{
248266
source: "/:locale/home/mastra/use-arcade-tools",
249267
destination:

0 commit comments

Comments
 (0)