Skip to content

Commit a43106a

Browse files
committed
fix: incorrect trpc imports from server
1 parent df14619 commit a43106a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/configs/trpc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const nuxtTrpcRootConfig = `/**
1010
* @see https://trpc.io/docs/v10/router
1111
* @see https://trpc.io/docs/v10/procedures
1212
*/
13-
import type { Context } from '~/server/trpc/context'
13+
import type { Context } from '~~/server/trpc/context'
1414
import { initTRPC } from '@trpc/server'
1515
import superjson from 'superjson'
1616
@@ -69,8 +69,8 @@ export type Context = inferAsyncReturnType<typeof createContext>
6969
`
7070

7171
const nuxtTrpcApiHandler = `import { createNuxtApiHandler } from 'trpc-nuxt'
72-
import { createContext } from '~/server/trpc/context'
73-
import { appRouter } from '~/server/trpc/routers'
72+
import { createContext } from '~~/server/trpc/context'
73+
import { appRouter } from '~~/server/trpc/routers'
7474
7575
// export API handler
7676
export default createNuxtApiHandler({
@@ -79,7 +79,7 @@ export default createNuxtApiHandler({
7979
})
8080
`
8181

82-
const nuxtTrpcPlugin = `import type { AppRouter } from '~/server/trpc/routers'
82+
const nuxtTrpcPlugin = `import type { AppRouter } from '~~/server/trpc/routers'
8383
import superjson from 'superjson'
8484
import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
8585

0 commit comments

Comments
 (0)