From ee7ba407e0c51f84b4bf31472fd354bc62537501 Mon Sep 17 00:00:00 2001 From: Tanner Heffner Date: Fri, 16 Feb 2024 12:00:19 -0800 Subject: [PATCH] add next preview server route for brd (#17264) --- docroot/sites/default/settings/settings.brd_common.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docroot/sites/default/settings/settings.brd_common.php b/docroot/sites/default/settings/settings.brd_common.php index 3c4f454962..a66ecd139b 100644 --- a/docroot/sites/default/settings/settings.brd_common.php +++ b/docroot/sites/default/settings/settings.brd_common.php @@ -16,3 +16,7 @@ } $settings['cms_datadog_api_key'] = getenv('CMS_DATADOG_API_KEY'); + +// Update next-build site endpoint to the appropriate preview alias +$config['next.next_site.next_build_preview_server']['base_url'] = getenv('NEXT_BUILD_PREVIEW_HOSTNAME'); +$config['next.next_site.next_build_preview_server']['preview_url'] = getenv('NEXT_BUILD_PREVIEW_HOSTNAME') . 'api/preview';