Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: cloudlfare pages sync request fix

Stijn-Kuijper59737f89c101
diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.ts
index 7d003b4f5f..81b445308e 100644
--- a/backend/src/integrations/sync.ts
+++ b/backend/src/integrations/sync.ts
@@ -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 };