Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenClimate API URL missing in frontend #376

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading