nuxt3-apollo-starter
nuxt3-apollo-starter copied to clipboard
apollo config single client
hi everyone
In nuxt3 apollo , i am trying to access conditional httpendpoint for apollo
apollo: { clients: { default: { // can be overridden by NUXT_PUBLIC_HTTP_ENDPOINT environment variable httpEndpoint: ${process.env.NUXT_PUBLIC_API_ENDPOINT}/graphql || "http://localhost:1337/graphql" // httpEndpoint: ${process.env.NUXT_PUBLIC_API_ENDPOINT}/graphql } }, }, . but its not accessing the env on kubernet server prodcution by useRuntimeConfig().public its access the env variables. plz help me on priorty , i am already 7 days delay on my job .
its SSR nuxt setup inside docker ,
on server they uses kubernet.