view love/epi/src/routes/index.tsx @ 45:ac8626c7859c

[Gara] Re-writing basic logic in C and hoping that I can import that into Java.
author MrJuneJune <me@mrjunejune.com>
date Wed, 03 Dec 2025 20:51:50 -0800
parents cf9caa4abc3e
children
line wrap: on
line source

import { createFileRoute, redirect } from '@tanstack/react-router';

export const Route = createFileRoute('/')({
  beforeLoad: () => {
    // This runs on navigation to /
    throw redirect({
      to: '/chat/new',
      replace: true,
    });
  },
});