From a7ee8e03051d577def2ee0e184944f8c457fafa2 Mon Sep 17 00:00:00 2001 From: qixuan <58852732+GiveMe-A-Name@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:38:09 +0800 Subject: [PATCH] fix: deploy commands add server plugin should add metaName (#5859) --- packages/solutions/app-tools/src/commands/deploy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/solutions/app-tools/src/commands/deploy.ts b/packages/solutions/app-tools/src/commands/deploy.ts index a34fa79edc2e..dbb118c2a147 100644 --- a/packages/solutions/app-tools/src/commands/deploy.ts +++ b/packages/solutions/app-tools/src/commands/deploy.ts @@ -7,8 +7,11 @@ export const deploy = async ( options: any, ) => { const hookRunners = api.useHookRunners(); + + const { metaName } = api.useAppContext(); + // deploy command need get all plugins - await getServerPlugins(api); + await getServerPlugins(api, metaName); await hookRunners.beforeDeploy(options); await hookRunners.deploy(options);