Skip to content

Commit

Permalink
feat: Add entityHash to output path (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia authored Oct 3, 2024
1 parent 8aca86c commit 2cec1cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ ENV PATH=$NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH

# Change this value ONLY if we have done breaking changes for every material, doing so is VERY costly
ENV AB_VERSION=v13
ENV AB_VERSION_WINDOWS=v24
ENV AB_VERSION_MAC=v24
ENV AB_VERSION_WINDOWS=v25
ENV AB_VERSION_MAC=v25

# NODE_ENV is used to configure some runtime options, like JSON logger
ENV NODE_ENV=production
Expand Down
9 changes: 8 additions & 1 deletion consumer-server/src/logic/conversion-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,15 @@ export async function executeConversion(
logger.error('Empty conversion', { ...defaultLoggerMetadata, manifest } as any)
}

let uploadPath: string = ''
if ($BUILD_TARGET === 'webgl') {
uploadPath = $AB_VERSION
} else {
uploadPath = $AB_VERSION + '/' + entityId
}

// first upload the content
await uploadDir(components.cdnS3, cdnBucket, outDirectory, $AB_VERSION, {
await uploadDir(components.cdnS3, cdnBucket, outDirectory, uploadPath, {
concurrency: 10,
matches: [
{
Expand Down

0 comments on commit 2cec1cb

Please sign in to comment.