Skip to content

Commit

Permalink
Merge pull request #376 from Open-Earth-Foundation/fix/openclimate-api
Browse files Browse the repository at this point in the history
Fix OpenClimate API URL missing in frontend
  • Loading branch information
lemilonkh authored Mar 19, 2024
2 parents 4e360c9 + ecb1bd6 commit 66f054a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion app/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, string>({
Expand Down
2 changes: 1 addition & 1 deletion k8s/cc-web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 66f054a

Please sign in to comment.