Open idflood opened 2 years ago
On most setup the url should be configurable from environment variables. In nuxt3 it's recommended to use the publicRuntimeConfig.
url
Ideally we should be able to use a similar config in nuxt.config.tx:
export default defineNuxtConfig({ ... publicRuntimeConfig: { urql: { url: process.env.BACKEND_URL || "https://example.com/graphql" }, }, }
But with the current version this config return this: You are creating an urql-client without a url.
You are creating an urql-client without a url.
On most setup the
url
should be configurable from environment variables. In nuxt3 it's recommended to use the publicRuntimeConfig.Ideally we should be able to use a similar config in nuxt.config.tx:
But with the current version this config return this:
You are creating an urql-client without a url.