fix: cloudlfare pages sync request fix

This commit is contained in:
Stijn-Kuijper
2023-06-19 15:44:41 +02:00
parent 17097965d9
commit 59737f89c1

View File

@@ -1883,14 +1883,14 @@ const syncSecretsCloudflarePages = async ({
}
}
await standardRequest.patch(
console.log(secretsObj); // -> { test: { value: 'test' }, aaa: null, test_cf: null }
const result = await standardRequest.patch(
`${INTEGRATION_CLOUDFLARE_PAGES_API_URL}/client/v4/accounts/${accessId}/pages/projects/${integration.app}`,
{
data: {
"deployment_configs": {
"production": {
"env_vars": secretsObj
}
"deployment_configs": {
"production": {
"env_vars": secretsObj
}
}
},
@@ -1901,6 +1901,8 @@ const syncSecretsCloudflarePages = async ({
},
}
)
console.log(result);
}
export { syncSecrets };