feat(routing): /sf -> /site-finder permanent redirect (short URL alias)

This commit is contained in:
lekss361 2026-05-11 19:49:26 +03:00
parent e6c062cc5b
commit ea3d58fa7d

View file

@ -22,6 +22,17 @@ const nextConfig: NextConfig = {
{ 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;