Skip to content

Commit cf1b385

Browse files
committed
feat: Nuxt 4 compatibility
1 parent 5ddcffe commit cf1b385

File tree

20 files changed

+3996
-7362
lines changed

20 files changed

+3996
-7362
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
lib
3-
dist
3+
/dist
44
.nuxt
55
playground/.nuxt
66

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineGraphqlClientOptions } from 'nuxt-graphql-middleware/client-options'
2+
import { useCurrentLanguage } from '#imports'
3+
4+
export default defineGraphqlClientOptions<{
5+
language: string
6+
}>({
7+
buildClientContext() {
8+
const language = useCurrentLanguage()
9+
10+
return {
11+
language: language.value,
12+
}
13+
},
14+
})

0 commit comments

Comments
 (0)