Skip to content

Commit

Permalink
[DOP-4033]: Use correct values for nextgenstage
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Oct 16, 2023
1 parent de8ae8c commit b2bc784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/src/shared/next-gen-stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ interface StageParams {
url: string;
patchId?: string;
commitBranch: string;
commitHash: string;
}

export async function nextGenStage({
repoDir,
mutPrefix,
projectName,
bucket,
url,
patchId,
commitBranch,
commitHash,
}: StageParams) {
let hostedAtUrl = `${url}/${mutPrefix}/docsworker/${commitBranch}/`;
let prefix = mutPrefix;

const commandArgs = ['public', bucket, '--stage'];

if (patchId && projectName === mutPrefix) {
const [commitHash, patchId] = await Promise.all([getCommitHash(repoDir), getPatchId(repoDir)]);
prefix = `${commitHash}/${patchId}/${mutPrefix}`;
hostedAtUrl = `${url}/${commitHash}/${patchId}/${mutPrefix}/docsworker/${commitBranch}/`;
}
Expand Down
1 change: 1 addition & 0 deletions src/entrypoints/localApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function localApp() {
bucket,
url: baseUrl,
mutPrefix,
commitHash,
});
console.log(resultMessage);
console.log('next-gen-stage complete');
Expand Down

0 comments on commit b2bc784

Please sign in to comment.