Skip to content

Commit

Permalink
fix: data residency for netlify (#5650)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusticpenguin authored Dec 19, 2023
1 parent 63bcfcb commit f15698e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/netlify/lambda/helpers/build-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const getHost = require('./getHost');

const privateKey = process.env['APP_IDENTITY_PRIVATE_KEY'] || '';
const appInstallationId = (process.env['APP_DEFINITION_ID'] || '').trim();
const baseUrl = 'https://api.contentful.com/';
const buildBaseURL = 'https://api.netlify.com/build_hooks/';
const assetTypes = ['Asset', 'DeletedAsset'];
const validEventTypes = ['Entry', 'DeletedEntry', ...assetTypes];
Expand Down Expand Up @@ -76,7 +75,7 @@ const getBuildHooksFromAppInstallationParams = async (
});

const rawResult = await fetch(
`${baseUrl}/spaces/${spaceId}/environments/${environmentId}/app_installations/${appInstallationId}`,
`https://${host}/spaces/${spaceId}/environments/${environmentId}/app_installations/${appInstallationId}`,
{
headers: {
authorization: `Bearer ${token}`,
Expand Down

0 comments on commit f15698e

Please sign in to comment.