fix (templates): ai-search OK. Fix themes.
This commit is contained in:
		
							parent
							
								
									dda9e7cc2c
								
							
						
					
					
						commit
						e8f12f3a8a
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -712,8 +712,8 @@ export class GBDeployer implements IGBDeployer {
 | 
			
		|||
 | 
			
		||||
      case '.gbtheme':
 | 
			
		||||
        // Updates server listeners to serve theme files in .gbtheme.
 | 
			
		||||
 | 
			
		||||
        GBServer.globals.server.use('/' + urlJoin('themes', packageName), express.static(packageWorkFolder));
 | 
			
		||||
        const filePath = path.join(GBConfigService.get('STORAGE_LIBRARY'), gbai, packageName);
 | 
			
		||||
        GBServer.globals.server.use('/' + urlJoin('themes', packageName), express.static( filePath));
 | 
			
		||||
        GBLogEx.verbose(min, `Theme (.gbtheme) assets accessible at: /themes/${packageName}.`);
 | 
			
		||||
 | 
			
		||||
        break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -313,7 +313,7 @@ export class GBMinService {
 | 
			
		|||
      await this.deployer['deployPackage2'](min, user, packagePath);
 | 
			
		||||
      await this.watchPackages(min, 'gbtheme');
 | 
			
		||||
    } else {
 | 
			
		||||
      await this.deployer['deployPackage2'](min, user, path.join(GBConfigService.get('STORAGE_LIBRARY'), 'default.gbai', 'default.gbtheme'));
 | 
			
		||||
      await this.deployer['deployPackage2'](min, user, path.join('work', 'default.gbai', 'default.gbtheme'));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    packagePath = urlJoin(`work`, GBUtil.getGBAIPath(min.botId, `gblib`));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue