diff --git a/.env b/.env index 7ed0b37..35233ba 100644 --- a/.env +++ b/.env @@ -9,8 +9,8 @@ VITE_APP_DEBUG=0 ########################## # APIs Used By Application ########################## -# VITE_WATER_API_URL=http://192.168.1.134 +VITE_WATER_API_URL=http://localhost:8080/cda/reporting # VITE_WATER_API_URL=https://ml-dev.sec.usace.army.mil/nsi-ml/cwms -VITE_WATER_API_URL=https://a2w-api.rsgis.dev/cwms +# VITE_WATER_API_URL=https://a2w-api.rsgis.dev/cwms VITE_RADAR_API_URL=https://cwms-data.usace.army.mil/cwms-data VITE_MOCK_API_URL=http://localhost \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08e3f62..021a012 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: REACT_APP_AUTH_HOST: https://develop-auth.corps.cloud/auth REACT_APP_AUTH_REDIRECT_URL: https://develop-water.corps.cloud # REACT_APP_WATER_API_URL: https://ml-dev.sec.usace.army.mil/nsi-ml/cwms - REACT_APP_WATER_API_URL: https://a2w-api.rsgis.dev/cwms + REACT_APP_WATER_API_URL: https://a2w-api.rsgis.dev/cda/reporting REACT_APP_ISDEVELOPMENT: true runs-on: ubuntu-latest strategy: diff --git a/src/app-bundles/provider-timeseries-values-bundle.js b/src/app-bundles/provider-timeseries-values-bundle.js index b8ac3b0..d47bf15 100644 --- a/src/app-bundles/provider-timeseries-values-bundle.js +++ b/src/app-bundles/provider-timeseries-values-bundle.js @@ -83,7 +83,7 @@ export default createRestBundle({ const isoBefore = endDate ? endDate?.toISOString() : null; const provider = store['selectProviderByRoute'](); - let tsUurl = apiUrl.replace('/cwms', '/cda'); + let tsUurl = apiUrl.replace('/reporting', '/proxy'); const tsid = timeseriesId.replace('%', '%25').replace('&', '%26'); const url = `${tsUurl}/providers/${provider?.slug}/timeseries?name=${tsid}&begin=${isoAfter}&end=${isoBefore}&page-size=-1`; //const url = `${apiUrl}/providers/${provider?.slug}/timeseries?name=${tsid}&begin=${isoAfter}&end=${isoBefore}`;