File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
client/packages/lowcoder/src/pages/setting/environments/services Expand file tree Collapse file tree 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(
109109export 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} ;
You can’t perform that action at this time.
0 commit comments