File tree 1 file changed +5
-4
lines changed
client/packages/lowcoder/src/pages/setting/environments/services
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ export async function getMergedWorkspaceApps(
109
109
export const deployApp = async ( params : DeployAppParams ) : Promise < boolean > => {
110
110
try {
111
111
const response = await axios . post (
112
- `/api/plugins/enterprise/deploy` ,
112
+ `/api/plugins/enterprise/app/ deploy` ,
113
113
null ,
114
114
{
115
115
params : {
116
+ applicationId : params . applicationId ,
116
117
envId : params . envId ,
117
118
targetEnvId : params . targetEnvId ,
118
- applicationId : params . applicationId ,
119
119
updateDependenciesIfNeeded : params . updateDependenciesIfNeeded ?? false ,
120
120
publishOnTarget : params . publishOnTarget ?? false ,
121
121
publicToAll : params . publicToAll ?? false ,
@@ -126,7 +126,8 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
126
126
127
127
return response . status === 200 ;
128
128
} 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 ) ;
131
132
}
132
133
} ;
You can’t perform that action at this time.
0 commit comments