From 3c345c1a2b4a77d006ded49a6c18818006a0ec12 Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Fri, 17 May 2024 10:07:24 -0500 Subject: [PATCH] remove or rename (#2062) --- README.md | 2 +- bin/validate_fixtures.exs | 2 +- config/runtime.exs | 6 +++--- integration/health_checks/cms.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8d71239f91..49a44f2826 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Welcome to [Dotcom](https://www.notion.so/mbta-downtown-crossing/Dotcom-6aa7b0f0 ``` cp .env.template .env ``` - Then uncomment the `V3_API_KEY` line and fill it in with the key you obtained + Then uncomment the `MBTA_API_KEY` line and fill it in with the key you obtained in the first step. If you have [direnv] installed (recommended), it will automatically load and unload the environment using this file. If not, `source .envrc` will load or update the variables in your shell session manually. diff --git a/bin/validate_fixtures.exs b/bin/validate_fixtures.exs index de00e8c6ce..0f1f2907d8 100644 --- a/bin/validate_fixtures.exs +++ b/bin/validate_fixtures.exs @@ -3,7 +3,7 @@ # """ # Compare the attributes in our fixture files to production Drupal API endpoints to see if any are missing. # -# See the project README for information on setting the `DRUPAL_ROOT` environment variable. +# See the project README for information on setting the `CMS_API_BASE_URL` environment variable. # # Run like: # diff --git a/config/runtime.exs b/config/runtime.exs index 76528d8c3b..7b6cc92459 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -101,17 +101,17 @@ else end config :dotcom, :cms_api, - base_url: System.get_env("CMS_API_BASE_URL", System.get_env("DRUPAL_ROOT")), + base_url: System.get_env("CMS_API_BASE_URL"), headers: [ {"Content-Type", "application/json"}, {"Accept", "application/json"} ] config :dotcom, :mbta_api, - base_url: System.get_env("MBTA_API_BASE_URL", System.get_env("V3_URL")), + base_url: System.get_env("MBTA_API_BASE_URL"), headers: [ {"MBTA-Version", "2019-07-01"}, - {"x-api-key", System.get_env("MBTA_API_KEY", System.get_env("V3_API_KEY"))}, + {"x-api-key", System.get_env("MBTA_API_KEY")}, {"x-enable-experimental-features", "true"} ] diff --git a/integration/health_checks/cms.js b/integration/health_checks/cms.js index 2a63326c59..6dca39aad8 100644 --- a/integration/health_checks/cms.js +++ b/integration/health_checks/cms.js @@ -1,7 +1,7 @@ const { status200 } = require("../utils"); const options = { - baseURL: process.env.CMS_API_BASE_URL || process.env.DRUPAL_ROOT, + baseURL: process.env.CMS_API_BASE_URL, url: "/pantheon_healthcheck", };