feat(routing): /sf -> /site-finder permanent redirect (short URL alias)
This commit is contained in:
parent
e6c062cc5b
commit
ea3d58fa7d
1 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,17 @@ const nextConfig: NextConfig = {
|
||||||
{ source: "/health", destination: `${backend}/health` },
|
{ source: "/health", destination: `${backend}/health` },
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
// /sf — короткий алиас для /site-finder (legacy short URL).
|
||||||
|
async redirects() {
|
||||||
|
return [
|
||||||
|
{ source: "/sf", destination: "/site-finder", permanent: true },
|
||||||
|
{
|
||||||
|
source: "/sf/:path*",
|
||||||
|
destination: "/site-finder/:path*",
|
||||||
|
permanent: true,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue