add cloudflare workers support for all frontends (#366)

This commit is contained in:
Aman Varshney
2025-07-05 15:51:26 +05:30
committed by GitHub
parent 6499f8cf04
commit d2674270a4
53 changed files with 1213 additions and 159 deletions

View File

@@ -4,7 +4,7 @@ import { routeTree } from "./routeTree.gen";
import "./styles.css";
{{#if (eq api "orpc")}}
import { QueryClientProvider } from "@tanstack/solid-query";
import { queryClient } from "./utils/orpc";
import { orpc, queryClient } from "./utils/orpc";
{{/if}}
const router = createRouter({
@@ -12,6 +12,9 @@ const router = createRouter({
defaultPreload: "intent",
scrollRestoration: true,
defaultPreloadStaleTime: 0,
{{#if (eq api "orpc")}}
context: { orpc, queryClient },
{{/if}}
});
declare module "@tanstack/solid-router" {