mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-31 12:17:53 +01:00
feat(deps): bump @nuxt/kit from 3.0.0-rc.4 to 3.0.0-rc.5
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
"prepare": "nuxi prepare playground"
|
"prepare": "nuxi prepare playground"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "^3.0.0-rc.4",
|
"@nuxt/kit": "3.0.0-rc.5",
|
||||||
"@trpc/client": "^9.26.0",
|
"@trpc/client": "^9.26.0",
|
||||||
"@trpc/server": "^9.26.0",
|
"@trpc/server": "^9.26.0",
|
||||||
"@vueuse/core": "^8.9.3",
|
"@vueuse/core": "^8.9.3",
|
||||||
|
|||||||
1855
pnpm-lock.yaml
generated
1855
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -13,10 +13,13 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||||||
const client = trpc.createTRPCClient<AppRouter>({
|
const client = trpc.createTRPCClient<AppRouter>({
|
||||||
url: `${config.baseURL}${config.endpoint}`,
|
url: `${config.baseURL}${config.endpoint}`,
|
||||||
headers: () => {
|
headers: () => {
|
||||||
return {
|
if (nuxtApp.ssrContext) {
|
||||||
...unref(otherHeaders),
|
return {
|
||||||
...headers,
|
...unref(otherHeaders),
|
||||||
|
...headers,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return {}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user