code: function(items, userData) {
  
  		var selfHostingConfig = this._siteClient.getSelfHostingConfig();
  
  		var self = this;
  		var dialog = new ConvertToSelfHostingDialog({
  			serviceRegistry: this.serviceRegistry,
  			fileClient: this.fileClient,
  			siteClient: this._siteClient,
  			selfHostingConfig: selfHostingConfig,
  			func: function(folderInfos) {
  				var folderLocations = folderInfos.map(function(folderInfo) {
  					return folderInfo.folder.Location;
  				});
  				self._siteClient.convertToSelfHosting(self.getSiteConfiguration(), folderLocations).then(
  					function(updatedSite) {
  						self.mappings.deleteAllMappings();
  						self.mappings.addMappings(updatedSite.Mappings);
  						self.save();
  					});
  			}
  		});
  		dialog.show();
  	}
docs: Special feature for setting up self-hosting