返回 CodeWhale
page.tsx
根目录 / web / app / [locale] / docs / pod / page.tsx
1 import { permanentRedirect } from "next/navigation";
2
3 /**
4 * Compatibility redirect: `/docs/pod` is the accepted alias for the canonical
5 * Fleet documentation URL at `/docs/fleet`. This route exists purely to keep
6 * already-published links, bookmarks, and search results resolving.
7 *
8 * 308 rather than 307: the move is permanent, so a crawler should transfer
9 * signal to `/docs/fleet` instead of indexing both URLs.
10 */
11 export default async function PodDocsRedirect({
12 params,
13 }: {
14 params: Promise<{ locale: string }>;
15 }) {
16 const { locale } = await params;
17 permanentRedirect(`/${locale}/docs/fleet`);
18 }
19
19 lines Plain Text