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';