diff --git a/backend/src/integrations/apps.ts b/backend/src/integrations/apps.ts
index e359ffa2b..245fd931d 100644
--- a/backend/src/integrations/apps.ts
+++ b/backend/src/integrations/apps.ts
@@ -134,7 +134,7 @@ const getApps = async ({
case INTEGRATION_CLOUDFLARE_PAGES:
apps = await getAppsCloudflarePages({
accessToken,
- accountId: ''
+ accountId: accessId
})
break;
}
@@ -670,13 +670,12 @@ const getAppsCloudflarePages = async ({
}
);
- const apps = data.map((a: any) => {
+ const apps = data.result.map((a: any) => {
return {
- name: a["project_name"],
+ name: a.name,
appId: a.id,
};
});
-
return apps;
}
diff --git a/frontend/src/pages/integrations/cloudflare-pages/create.tsx b/frontend/src/pages/integrations/cloudflare-pages/create.tsx
index 19d4e39b1..d3ba19e37 100644
--- a/frontend/src/pages/integrations/cloudflare-pages/create.tsx
+++ b/frontend/src/pages/integrations/cloudflare-pages/create.tsx
@@ -57,7 +57,8 @@ export default function CloudflarePagesIntegrationPage() {
targetServiceId: null,
owner: null,
path: null,
- region: null
+ region: null,
+ secretPath: '/',
});
setIsLoading(false);
@@ -82,14 +83,14 @@ export default function CloudflarePagesIntegrationPage() {
onValueChange={(val) => setSelectedSourceEnvironment(val)}
className="w-full border border-mineshaft-500"
>
- {workspace?.environments.map((sourceEnvironment) => {
-
- {sourceEnvironment.name}
-
- })}
+ {workspace?.environments.map((sourceEnvironment) => (
+
+ {sourceEnvironment.name}
+
+ ))}
@@ -100,18 +101,18 @@ export default function CloudflarePagesIntegrationPage() {
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
- integrationAuthApps.map((integrationAuthApp) => {
-
- {integrationAuthApp.name}
-
- })
- ) : (
-
- No projects found
+ integrationAuthApps.map((integrationAuthApp) => (
+
+ {integrationAuthApp.name}
+ ))
+ ) : (
+
+ No apps found
+
)}