From 27311b11e24d40ea66cd9e7182cf6d0a6e357049 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Wed, 30 Mar 2022 16:44:58 -0400 Subject: [PATCH] Modify data tile server to static URL to fix CORS (#1512) * Modify data tile server to static URL to fix CORS * Remove the cron from the cache invalidate action --- .github/workflows/refresh-be-cdn.yml | 6 +++--- client/.env.development | 2 +- client/.env.production | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/refresh-be-cdn.yml b/.github/workflows/refresh-be-cdn.yml index 533d5426..0acd0ea8 100644 --- a/.github/workflows/refresh-be-cdn.yml +++ b/.github/workflows/refresh-be-cdn.yml @@ -6,9 +6,9 @@ on: description: This will invalidate the backend CDN, are you sure you want to proceed? (Y/n) default: n required: true - schedule: - # runs every 6 hours: - - cron: "0 */6 * * *" + # to allow this action to run every 6 hours + # schedule: + # - cron: "0 */6 * * *" env: BE_CDN_ID: E1324VDMNCO97N jobs: diff --git a/client/.env.development b/client/.env.development index d121e51f..74560b49 100644 --- a/client/.env.development +++ b/client/.env.development @@ -3,7 +3,7 @@ # Feature Tiles env variables: # The TILES_BASE_URL will be determined by the DATA_SOURCE env variable -GATSBY_CDN_TILES_BASE_URL=https://d3jqyw10j8e7p9.cloudfront.net +GATSBY_CDN_TILES_BASE_URL=https://static-data-screeningtool.geoplatform.gov GATSBY_LOCAL_TILES_BASE_URL=http://localhost:5000/data/data-pipeline GATSBY_DATA_PIPELINE_SCORE_PATH_LOCAL=data_pipeline/data/score diff --git a/client/.env.production b/client/.env.production index 69f9b1cf..fea22c57 100644 --- a/client/.env.production +++ b/client/.env.production @@ -3,7 +3,7 @@ # Feature Tiles env variables: # The TILES_BASE_URL will always point to the CDN -GATSBY_CDN_TILES_BASE_URL=https://d3jqyw10j8e7p9.cloudfront.net +GATSBY_CDN_TILES_BASE_URL=https://static-data-screeningtool.geoplatform.gov GATSBY_DATA_PIPELINE_SCORE_PATH=data-pipeline/data/score GATSBY_SCORE_DOWNLOAD_FILE_PATH=downloadable/Screening_Tool_Data.zip