Replies: 1 comment
-
I was able to make this work by specifying a different host and clientHost in nuxt.config. ['nuxt-graphql-client',{
codegen: true,
clients: {
default: {
host: './server/**/*.graphql',
clientHost: 'http://localhost:3000/api/graphql',
}
}
}], |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a nuxt project that runs both nuxt-grqphql-client and nuxt-graphql-server. This works great when I have codegen disabled however when codegen is enabled, the client attempts to get the schema from the server before the server is warmed up preventing the project to start. Any recommendations? Otherwise I will disable the codegen in the client and setup code generation a different way. (But I'd love to just use the graphql-client!) :)
Beta Was this translation helpful? Give feedback.
All reactions