@@ -10,7 +10,7 @@ import { ApillonApi } from '../../lib/apillon-api';
1010import { ApillonLogger } from '../../lib/apillon-logger' ;
1111import { uploadFiles } from '../../util/file-utils' ;
1212import { ApillonModel } from '../../lib/apillon' ;
13- import { FileMetadata , IFileUploadRequest } from '../../types/storage' ;
13+ import { FileMetadata , IDeployRequest , IFileUploadRequest } from '../../types/storage' ;
1414
1515export class HostingWebsite extends ApillonModel {
1616 /**
@@ -114,7 +114,7 @@ export class HostingWebsite extends ApillonModel {
114114 * @param {DeployToEnvironment } toEnvironment The environment to deploy to
115115 * @returns Newly created deployment
116116 */
117- public async deploy ( toEnvironment : DeployToEnvironment ) {
117+ public async deploy ( toEnvironment : DeployToEnvironment , params ?: IDeployRequest ) {
118118 ApillonLogger . log (
119119 `Deploying website ${ this . uuid } to IPFS (${
120120 toEnvironment === DeployToEnvironment . TO_STAGING
@@ -126,7 +126,7 @@ export class HostingWebsite extends ApillonModel {
126126 ApillonLogger . logWithTime ( 'Initiating deployment' ) ;
127127 const data = await ApillonApi . post < Deployment & { deploymentUuid : string } > (
128128 `${ this . API_PREFIX } /deploy` ,
129- { environment : toEnvironment } ,
129+ { environment : toEnvironment , ... params } ,
130130 ) ;
131131
132132 ApillonLogger . logWithTime ( 'Deployment in progress' ) ;
0 commit comments