feat: redirect old preview links to the asset page

This commit is contained in:
rajun 2026-10-27 16:28:59 +05:30
parent 4f8168e462
commit f7a741b54e

View File

@ -0,0 +1,11 @@
import { redirect } from 'react-router';
import type { Route } from './+types/preview.$id';
import { ROUTES } from '~/data/routes';
export function clientLoader({ params }: Route.ClientLoaderArgs) {
return redirect(ROUTES.asset(params.id));
}
export default function LegacyPreview() {
return null;
}