mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 09:28:28 +00:00
fix: cloudlfare pages sync request fix
This commit is contained in:
@@ -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}`,
|
`${INTEGRATION_CLOUDFLARE_PAGES_API_URL}/client/v4/accounts/${accessId}/pages/projects/${integration.app}`,
|
||||||
{
|
{
|
||||||
data: {
|
"deployment_configs": {
|
||||||
"deployment_configs": {
|
"production": {
|
||||||
"production": {
|
"env_vars": secretsObj
|
||||||
"env_vars": secretsObj
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1901,6 +1901,8 @@ const syncSecretsCloudflarePages = async ({
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { syncSecrets };
|
export { syncSecrets };
|
||||||
|
|||||||
Reference in New Issue
Block a user