Created
July 22, 2026 22:39
-
-
Save matjam/bf9d6af193a15adca86760d3b0729800 to your computer and use it in GitHub Desktop.
PP-7886 landing-page-client-next MARKETPLACE_API_BASE_URL cutover patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From fba63ebe8b4e25931596611f91de317bc1e4f734 Mon Sep 17 00:00:00 2001 | |
| From: Nathan Ollerenshaw <nollerenshaw@nerdwallet.com> | |
| Date: Wed, 22 Jul 2026 15:38:56 -0700 | |
| Subject: [PATCH] feat(PP-7886): point server-side marketplace calls at | |
| marketplace-api | |
| Add MARKETPLACE_API_BASE_URL to env files and use it for insurance | |
| marketplace search instead of the hardcoded edge URL. | |
| Refs: PP-7886 | |
| Co-authored-by: Cursor <cursoragent@cursor.com> | |
| --- | |
| .../marketplace-service/marketplace.service.ts | 3 ++- | |
| env/.env.development | 1 + | |
| env/.env.production | 1 + | |
| env/.env.staging | 1 + | |
| 4 files changed, 5 insertions(+), 1 deletion(-) | |
| diff --git a/app/api/insurance-matches-services/marketplace-service/marketplace.service.ts b/app/api/insurance-matches-services/marketplace-service/marketplace.service.ts | |
| index d423184..02f44d7 100644 | |
| --- a/app/api/insurance-matches-services/marketplace-service/marketplace.service.ts | |
| +++ b/app/api/insurance-matches-services/marketplace-service/marketplace.service.ts | |
| @@ -1,4 +1,5 @@ | |
| import axios from 'axios'; | |
| +import appConfig from '@nerdwallet/app-config'; | |
| import { getRedisConnection } from '~/app/lib/get-wordpress-redis-connection'; | |
| import { CACHE_DURATION, cached } from './cache.service'; | |
| import { | |
| @@ -24,7 +25,7 @@ export async function searchByEntityType<T extends AnyEntity>( | |
| pagination = { offset: 0, limit: 1000 } | |
| ): Promise<SearchResults<T>> { | |
| const axiosInstance = axios.create({ | |
| - baseURL: 'https://www.nerdwallet.com/api/marketplace', | |
| + baseURL: appConfig.MARKETPLACE_API_BASE_URL, | |
| params: { | |
| caller_client_id: 'insurance-flows', | |
| }, | |
| diff --git a/env/.env.development b/env/.env.development | |
| index aee0b94..8f1eb89 100644 | |
| --- a/env/.env.development | |
| +++ b/env/.env.development | |
| @@ -18,6 +18,7 @@ BROWSER.DEPLOYABLE_ENV=development | |
| BROWSER.SUPERGRAPH_URL=https://stage.nerdwallet.biz/api/supergraph | |
| BROWSER.WP_API_ENVIRONMENT=stage | |
| API.BASE_URLS.WP_API=http://content-platform-api.service.apps.us-east-1.stage.nerdwallet.io/api/content-platform | |
| +MARKETPLACE_API_BASE_URL=https://api.marketplace.nerdwallet.biz/marketplace | |
| BROWSER.API.BASE_URLS.YAK=https://stage.nerdwallet.biz/api | |
| BROWSER.SEGMENT.API_HOST=siteusage.nerdwallet.com/v1 | |
| diff --git a/env/.env.production b/env/.env.production | |
| index eb8fae0..92a5beb 100644 | |
| --- a/env/.env.production | |
| +++ b/env/.env.production | |
| @@ -16,6 +16,7 @@ BROWSER.DEPLOYABLE_ENV=production | |
| BROWSER.SUPERGRAPH_URL=https://www.nerdwallet.com/api/supergraph | |
| BROWSER.WP_API_ENVIRONMENT=prod | |
| API.BASE_URLS.WP_API=http://content-platform-api.service.prod.us-east-1.prod.nerdwallet.io/api/content-platform | |
| +MARKETPLACE_API_BASE_URL=https://api.marketplace.nerdwallet.com/marketplace | |
| BROWSER.NWJS_ANALYTICS.ENABLED=true | |
| BROWSER.API.BASE_URLS.YAK=https://www.nerdwallet.com/api | |
| diff --git a/env/.env.staging b/env/.env.staging | |
| index 62e90d5..550f93f 100644 | |
| --- a/env/.env.staging | |
| +++ b/env/.env.staging | |
| @@ -16,6 +16,7 @@ BROWSER.DEPLOYABLE_ENV=staging | |
| BROWSER.SUPERGRAPH_URL=https://stage.nerdwallet.biz/api/supergraph | |
| BROWSER.WP_API_ENVIRONMENT=stage | |
| API.BASE_URLS.WP_API=http://content-platform-api.service.apps.us-east-1.stage.nerdwallet.io/api/content-platform | |
| +MARKETPLACE_API_BASE_URL=https://api.marketplace.nerdwallet.biz/marketplace | |
| BROWSER.NWJS_ANALYTICS.ENABLED=true | |
| BROWSER.API.BASE_URLS.YAK=https://stage.nerdwallet.biz/api | |
| -- | |
| 2.55.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment