diff --git a/app/env.example b/app/env.example index 3a6cb9c49..d969549ca 100644 --- a/app/env.example +++ b/app/env.example @@ -17,3 +17,4 @@ VERIFICATION_TOKEN_SECRET="80c70dfdeedf2c01757b880d39c79214e915c786dd48d5473c9c0 HUGGINGFACE_API_KEY=hf_MY_SECRET_KEY OPENAI_API_KEY=sk-MY_SECRET_KEY CHAT_PROVIDER=huggingface +NEXT_PUBLIC_OPENCLIMATE_API_URL="https://openclimate.openearth.dev" diff --git a/app/src/services/api.ts b/app/src/services/api.ts index e902ece3b..663dea206 100644 --- a/app/src/services/api.ts +++ b/app/src/services/api.ts @@ -383,7 +383,7 @@ export const api = createApi({ export const openclimateAPI = createApi({ reducerPath: "openclimateapi", baseQuery: fetchBaseQuery({ - baseUrl: process.env.OPENCLIMATE_API_URL, + baseUrl: process.env.NEXT_PUBLIC_OPENCLIMATE_API_URL, }), endpoints: (builder) => ({ getOCCity: builder.query({ diff --git a/k8s/cc-web-deploy.yml b/k8s/cc-web-deploy.yml index 20c5fdb37..e4e08a968 100644 --- a/k8s/cc-web-deploy.yml +++ b/k8s/cc-web-deploy.yml @@ -46,7 +46,7 @@ spec: value: "587" - name: GLOBAL_API_URL value: "https://ccglobal.openearth.dev" - - name: OPENCLIMATE_API_URL + - name: NEXT_PUBLIC_OPENCLIMATE_API_URL value: "https://openclimate.openearth.dev" resources: limits: