nuxt3-apollo-starter icon indicating copy to clipboard operation
nuxt3-apollo-starter copied to clipboard

apollo config single client

Open seetpalsingh opened this issue 1 year ago • 0 comments

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.

seetpalsingh avatar May 09 '23 05:05 seetpalsingh