From 73c44fe743afe87ef282af2b11924d8e36e547e6 Mon Sep 17 00:00:00 2001 From: Karin Hendrikse <30577427+khendrikse@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:08:59 +0200 Subject: [PATCH] feat: use v2 endpoint that has siteid for extensions (#5792) --- packages/config/src/api/site_info.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config/src/api/site_info.ts b/packages/config/src/api/site_info.ts index b71bf375f1..d318928b22 100644 --- a/packages/config/src/api/site_info.ts +++ b/packages/config/src/api/site_info.ts @@ -156,6 +156,7 @@ const getIntegrations = async function ({ const baseUrl = new URL(host ? `http://${host}` : `https://api.netlifysdk.com`) + // use future state feature flag const url = useV2Endpoint ? `${baseUrl}team/${accountId}/integrations/installations/meta/${siteId}` : `${baseUrl}site/${siteId}/integrations/safe`