Skip to content

Commit bdb514c

Browse files
committed
docs: update Nuxt Apollo integration guide to include runtime config usage
1 parent 31d9239 commit bdb514c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/docs/advance/nuxt-custom-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Create a plugin at `app/plugins/apollo.ts` to adjust the client at runtime:
4444
```ts
4545
export default defineNuxtPlugin(() => {
4646
const { client } = useApolloClient()
47+
const runtimeConfig = useRuntimeConfig()
4748
const access = useCookie('accessToken')
4849

4950
const httpLink = new HttpLink({

0 commit comments

Comments
 (0)