Revert "trpc changes"
This reverts commit 83c1618a4435978a1f73e2266f8d488c35a61065.
This commit is contained in:
		
							parent
							
								
									70eccbe29b
								
							
						
					
					
						commit
						2796d13734
					
				| @ -5,7 +5,7 @@ import { httpBatchStreamLink, loggerLink } from "@trpc/client"; | |||||||
| import { createTRPCReact } from "@trpc/react-query"; | import { createTRPCReact } from "@trpc/react-query"; | ||||||
| import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server"; | import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server"; | ||||||
| import { useState } from "react"; | import { useState } from "react"; | ||||||
| import SuperJSON from "superjson";\ | import SuperJSON from "superjson"; | ||||||
| 
 | 
 | ||||||
| import { type AppRouter } from "~/server/api/root"; | import { type AppRouter } from "~/server/api/root"; | ||||||
| import { createQueryClient } from "./query-client"; | import { createQueryClient } from "./query-client"; | ||||||
| @ -74,7 +74,5 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) { | |||||||
| function getBaseUrl() { | function getBaseUrl() { | ||||||
|   if (typeof window !== "undefined") return window.location.origin; |   if (typeof window !== "undefined") return window.location.origin; | ||||||
|   if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; |   if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; | ||||||
|   if (process.env.REVALIDATE_URL) return `https://${process.env.REVALIDATE_URL}`; |   return `http://localhost:${process.env.PORT ?? 3000}`; | ||||||
|   if (process.env.URL) return process.env.URL; |  | ||||||
|   return `http://:${process.env.PORT ?? 3000}`; |  | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user