refactor!: replace trpcURL option with endpoint

This commit is contained in:
Robert Soriano
2022-06-12 23:29:28 -07:00
parent f62a13766a
commit 82ee2ce672
3 changed files with 10 additions and 7 deletions

View File

@@ -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),