mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-20 23:11:41 +01:00
feat(deps): bump @nuxt/kit from 3.0.0-rc.4 to 3.0.0-rc.5
This commit is contained in:
@@ -13,10 +13,13 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
const client = trpc.createTRPCClient<AppRouter>({
|
||||
url: `${config.baseURL}${config.endpoint}`,
|
||||
headers: () => {
|
||||
return {
|
||||
...unref(otherHeaders),
|
||||
...headers,
|
||||
if (nuxtApp.ssrContext) {
|
||||
return {
|
||||
...unref(otherHeaders),
|
||||
...headers,
|
||||
}
|
||||
}
|
||||
return {}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user