Skip to content

Commit be301ca

Browse files
committed
accidental deletion
1 parent 90c8fd2 commit be301ca

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/docusaurus.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,16 @@ const config = {
5252
to: `/guides/ai-apps`,
5353
from: `/guides/assistants`
5454
}
55-
]
55+
],
56+
createRedirects(existingPath) {
57+
if (existingPath.includes('/guides')) {
58+
// Redirect from /guides/ja/X to /guides/X
59+
return [
60+
existingPath.replace('/guides', '/guides/ja'),
61+
];
62+
}
63+
return undefined; // Return a falsy value: no redirect created
64+
}
5665
}
5766
]
5867
],

0 commit comments

Comments
 (0)