Skip to content

Commit 81f63ba

Browse files
committed
Pass in config file path
1 parent b9330ed commit 81f63ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/cli-v3/src/commands/deploy.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
DeploymentFinalizedEvent,
99
} from "@trigger.dev/core/v3/schemas";
1010
import { Command, Option as CommandOption } from "commander";
11-
import { join, resolve } from "node:path";
11+
import { join, relative, resolve } from "node:path";
1212
import { isCI } from "std-env";
1313
import { x } from "tinyexec";
1414
import { z } from "zod";
@@ -947,6 +947,11 @@ async function handleNativeBuildServerDeploy({
947947

948948
$deploymentSpinner.message("Deployment files uploaded");
949949

950+
const configFilePath =
951+
config.configFile !== undefined
952+
? relative(config.workspaceDir, config.configFile).replace(/\\/g, "/")
953+
: undefined;
954+
950955
const initializeDeploymentResult = await apiClient.initializeDeployment({
951956
contentHash: "-",
952957
userId,
@@ -956,6 +961,7 @@ async function handleNativeBuildServerDeploy({
956961
isNativeBuild: true,
957962
artifactKey,
958963
skipPromotion: options.skipPromotion,
964+
configFilePath,
959965
});
960966

961967
if (!initializeDeploymentResult.success) {

0 commit comments

Comments
 (0)