Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com
Open History to see the last commit

index.tsx

9 lines202 Bytes

1import { createFileRoute, redirect } from "@tanstack/react-router";
2​
3export const Route = createFileRoute("/")({
4 beforeLoad: async () => {
5 throw redirect({
6 to: "/projects",
7 });
8 },
9});