Skip to content

Commit

Permalink
feat: use v2 endpoint that has siteid for extensions (#5792)
Browse files Browse the repository at this point in the history
  • Loading branch information
khendrikse authored Aug 5, 2024
1 parent 3947ee6 commit 73c44fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/config/src/api/site_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 73c44fe

Please sign in to comment.