mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
update docs
This commit is contained in:
@@ -14,9 +14,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
links: [
|
links: [
|
||||||
httpBatchLink({
|
httpBatchLink({
|
||||||
headers() {
|
headers() {
|
||||||
return {
|
return headers
|
||||||
...unref(headers)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -16,9 +16,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
httpBatchLink({
|
httpBatchLink({
|
||||||
url: 'http://localhost:3000/api/trpc',
|
url: 'http://localhost:3000/api/trpc',
|
||||||
headers () {
|
headers () {
|
||||||
return {
|
return headers
|
||||||
...unref(headers)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user