Skip to content

Commit

Permalink
debugging, add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
IanR01 committed Jan 30, 2024
1 parent f164b2d commit 84f4e2d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Selector, State } from "./types";

console.log(" -- ENV -- ", process.env);
console.log(" -- WINDOW ENV --", window._env_)

let azureStorageBaseURL = `${window?._env_?.REACT_APP_AZURE_STORAGE_CONTAINER}/csv`; // PROD Azure Storage Container URL

console.log("azureStorageBaseURL", azureStorageBaseURL)
if (["development", "test"].includes(process.env.NODE_ENV)) {
azureStorageBaseURL = "http://localhost:3000/static/data"; // Local development and testing URL (download the files manually)
}
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFetchAttributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Attribute } from "../types";
import { niceFetch } from "../utils/niceFetch";

export function useFetchAttributes() {
console.log("HIOR_ATTRIBUTES_URL:", HIOR_ATTRIBUTES_URL)
return useQuery(
["hior_attributes"],
() => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFetchFaq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { defaultQuerySettings } from "../queryClient";
import { niceFetch } from "../utils/niceFetch";

export function useFetchFaq() {
console.log("HIOR_FAQ_URL:", HIOR_FAQ_URL)
return useQuery(
["hior_faq"],
() => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFetchItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Item } from "../types";
import { niceFetch } from "../utils/niceFetch";

export function useFetchItems() {
console.log("HIOR_ITEMS_URL:", HIOR_ITEMS_URL)
return useQuery(
["hior_items"],
() => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFetchMetaData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type MetaDataResult = {
};

export default function useFetchMetaData() {
console.log("HIOR_METADATA_URL:", HIOR_METADATA_URL)
return useQuery(
["hior_metadata"],
() => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFetchProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Property } from "../types";
import { niceFetch } from "../utils/niceFetch";

export function useFetchProperties() {
console.log("HIOR_PROPERTIES_URL:", HIOR_PROPERTIES_URL)
return useQuery(
["hior_properties"],
() => {
Expand Down

0 comments on commit 84f4e2d

Please sign in to comment.