Skip to content

Commit 296959e

Browse files
committed
Fix for doing remote image build when not self-hosting
1 parent 7bea9eb commit 296959e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/webapp/app/v3/services/initializeDeployment.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export class InitializeDeploymentService extends BaseService {
2929
const nextVersion = calculateNextBuildVersion(latestDeployment?.version);
3030

3131
// Try and create a depot build and get back the external build data
32-
const externalBuildData = !!payload.selfHosted
33-
? await createRemoteImageBuild(environment.project)
34-
: undefined;
32+
const externalBuildData = payload.selfHosted
33+
? undefined
34+
: await createRemoteImageBuild(environment.project);
3535

3636
const triggeredBy = payload.userId
3737
? await this._prisma.user.findUnique({

0 commit comments

Comments
 (0)