import { LoaderFunctionArgs } from "react-router"; import { requireAuth } from "~/utils/loaders.middleware"; import { legacySettingsRedirect } from "./legacy-redirects.server"; export const loader = async ({ request, params }: LoaderFunctionArgs) => { await requireAuth({ request, params }); // AK-SET-01: retargeted straight at the hub — pointing at the old // `settings/subscription` would now cost a second hop. Routed through the // shared helper so the query string survives like on every other legacy path. return legacySettingsRedirect({ request, params }, "settings/billing"); }; export default function RemovedCreditsRoute() { return null; }