feat: add fate vite integration

This commit is contained in:
Aarnav Tale
2026-05-16 20:37:57 -04:00
parent 04ff2138d2
commit ad7e58570f
8 changed files with 107 additions and 14 deletions
+5 -8
View File
@@ -1,15 +1,12 @@
import { RouterProvider } from "@tanstack/react-router";
import { FateClient, createClient, createHTTPTransport } from "react-fate";
import { FateClient } from "react-fate";
import { createFateClient } from "react-fate/client";
import { router } from "./router";
const fate = createClient({
roots: {},
transport: createHTTPTransport({
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
url: `${__PREFIX__}/fate`,
}),
types: [],
const fate = createFateClient({
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
url: `${__PREFIX__}/fate`,
});
export function App() {