mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-17 21:48:06 +01:00
refactor!: replace trpcURL option with endpoint
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
const headers = useRequestHeaders()
|
||||
const otherHeaders = useClientHeaders()
|
||||
const client = trpc.createTRPCClient<AppRouter>({
|
||||
url: `${config.baseURL}${config.trpcURL}`,
|
||||
url: `${config.baseURL}${config.endpoint}`,
|
||||
headers: () => {
|
||||
return {
|
||||
...unref(otherHeaders),
|
||||
|
||||
Reference in New Issue
Block a user