Skip to content

Commit 3dfbee3

Browse files
committed
update deploy app endpoint for the new plugin
1 parent 9c7c221 commit 3dfbee3

File tree

1 file changed

+5
-4
lines changed
  • client/packages/lowcoder/src/pages/setting/environments/services

1 file changed

+5
-4
lines changed

client/packages/lowcoder/src/pages/setting/environments/services/apps.service.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ export async function getMergedWorkspaceApps(
109109
export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
110110
try {
111111
const response = await axios.post(
112-
`/api/plugins/enterprise/deploy`,
112+
`/api/plugins/enterprise/app/deploy`,
113113
null,
114114
{
115115
params: {
116+
applicationId: params.applicationId,
116117
envId: params.envId,
117118
targetEnvId: params.targetEnvId,
118-
applicationId: params.applicationId,
119119
updateDependenciesIfNeeded: params.updateDependenciesIfNeeded ?? false,
120120
publishOnTarget: params.publishOnTarget ?? false,
121121
publicToAll: params.publicToAll ?? false,
@@ -126,7 +126,8 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
126126

127127
return response.status === 200;
128128
} catch (error) {
129-
console.error('Error deploying app:', error);
130-
throw error;
129+
const errorMessage = error instanceof Error ? error.message : 'Failed to deploy app';
130+
// Don't show message directly, let the calling component handle it
131+
throw new Error(errorMessage);
131132
}
132133
};

0 commit comments

Comments
 (0)