ok build now
This commit is contained in:
		
							parent
							
								
									9529903375
								
							
						
					
					
						commit
						6a204ceb28
					
				| @ -2,7 +2,7 @@ import { createNextApiHandler } from "@trpc/server/adapters/next"; | ||||
| 
 | ||||
| import { env } from "~/env.mjs"; | ||||
| import { createTRPCContext } from "~/server/api/trpc"; | ||||
| import { appRouter } from "~/server/api/root"; | ||||
| import { appRouter } from "../../../server/api/root"; | ||||
| 
 | ||||
| // export API handler
 | ||||
| export default createNextApiHandler({ | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| import { createTRPCRouter } from "~/server/api/trpc"; | ||||
| import { exampleRouter } from "~/server/api/routers/example"; | ||||
| import { createTRPCRouter } from "../../server/api/trpc"; | ||||
| import { exampleRouter } from "../../server/api/routers/example"; | ||||
| 
 | ||||
| /** | ||||
|  * This is the primary router for your server. | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| import { z } from "zod"; | ||||
| 
 | ||||
| import { createTRPCRouter, publicProcedure } from "~/server/api/trpc"; | ||||
| import { createTRPCRouter, publicProcedure } from "../../../server/api/trpc"; | ||||
| 
 | ||||
| export const exampleRouter = createTRPCRouter({ | ||||
|   hello: publicProcedure | ||||
|  | ||||
| @ -16,7 +16,7 @@ | ||||
|  */ | ||||
| import { type CreateNextContextOptions } from "@trpc/server/adapters/next"; | ||||
| 
 | ||||
| import { prisma } from "~/server/db"; | ||||
| import { prisma } from "../../server/db"; | ||||
| 
 | ||||
| type CreateContextOptions = Record<string, never>; | ||||
| 
 | ||||
|  | ||||
| @ -9,7 +9,7 @@ import { createTRPCNext } from "@trpc/next"; | ||||
| import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server"; | ||||
| import superjson from "superjson"; | ||||
| 
 | ||||
| import { type AppRouter } from "~/server/api/root"; | ||||
| import { type AppRouter } from "../server/api/root"; | ||||
| 
 | ||||
| const getBaseUrl = () => { | ||||
|   if (typeof window !== "undefined") return ""; // browser should use relative url
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user