-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL client (default) is missing it's host. #321
Comments
@Saurou The configuration you have above is correct and should in fact be working properly, have you ensured that the
the Also, this module is configured to automatically detect the @Saurou Here is a quick demo I put together https://stackblitz.com/edit/nuxt-starter-k55tfm?file=app.vue GQL_HOST="https://spacex-api-2gl6xp7kua-ue.a.run.app/query" |
@Diizzayy thanks. It looks like the .env was deleted on the server, for some reason, hence why the error. That's also why I was not getting the warning locally. I removed |
I'm having the same issue even though my .env has the GQL_HOST='http:https://example.com' declared and no host in the GQL plugin. |
@Saurou yup i also get the same error when deploying in my server ,however in my local its working fine without the host .env on production like was deleted wierd, did you manage to fix the error on deployment |
@Diizzayy hope you doing. great i just wanna mention that this bug still not be fixed especially when deploying to server i get the error above the host is missing , i did the approch you give and yes it works on local environment but in production no you can’t use process.env.GQL_HOST ,HOPE YOU GUYS CAN FIX THIS ASAP |
@ajaxbo360 Thanks for resurfacing this issue. I'll be sure to investigate this today |
@Diizzayy thanks bro much appreciated ,basically the env variable is not been used in host ,cause i tried on local ,everything is working i commented host but in production still give me the same issue host is missing, hope you have a wonderful day |
Facing the same issue. |
Environment
Nuxt 3
Describe the bug
WARN GraphQL client (default) is missing it's host.
is shown after running yarn on server.It also has a typo, as it shoulod be
its
instead ofit's
.Expected behaviour
host is added to nuxt.config.ts
Reproduction
No response
Additional context
VS Code also marks
host:
as an error with the following description:Logs
No response
The text was updated successfully, but these errors were encountered: