feat(deps): bump @nuxt/kit from 3.0.0-rc.4 to 3.0.0-rc.5

This commit is contained in:
Robert Soriano
2022-07-14 19:02:54 -07:00
parent 2b517ad77b
commit e48d7cd42c
3 changed files with 704 additions and 1162 deletions

View File

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