import { Booster } from '@boostercloud/framework-core' ; import { BoosterConfig } from '@boostercloud/framework-types' ; import * as fs from 'fs' ; import * as path from 'path' ; Booster . configure ( 'local' , ( config ) : void => { config . appName = 'my-store' ; config . providerPackage = '@boostercloud/framework-provider-local' ; } ) ; Booster . configure ( 'kubernetes' , ( config ) : void => { config . appName = 'my-store' ; config . providerPackage = '@boostercloud/framework-provider-kubernetes' ; config . assets = [ 'assets' , 'components' , 'assetFile.txt' ] ; } ) ; Booster . configure ( 'development' , ( config ) : void => { config . appName = 'my-store' ; config . providerPackage = '@boostercloud/framework-provider-aws' ; config . assets = [ 'assets' , 'assetFile.txt' ] ; } ) ; Booster . configure ( 'production' , ( config ) : void => { const appNameSuffix = process . env . BOOSTER_APP_SUFFIX ?? 'default' ; config . env [ 'BOOSTER_APP_SUFFIX' ] = appNameSuffix ; config . appName = 'my-store-' + appNameSuffix ; config . providerPackage = '@boostercloud/framework-provider-aws' ; config . assets = [ 'assets' ] ; config . tokenVerifiers = [ { issuer : 'booster' , publicKey : fs . readFileSync ( path . join ( __dirname , '..' , '..' , 'assets' , 'certs' , 'public.key' ) , 'utf8' ) , rolesClaim : 'booster:role' , } , ] ; } ) ; Booster . configure ( 'azure' , ( config ) : void => { const appNameSuffix = process . env . BOOSTER_APP_SUFFIX ?? 'default' ; config . env [ 'BOOSTER_APP_SUFFIX' ] = appNameSuffix ; config . appName = 'my-store-' + appNameSuffix ; config . providerPackage = '@boostercloud/framework-provider-azure' ; config . assets = [ 'assets' ] ; config . tokenVerifiers = [ { issuer : 'booster' , publicKey : fs . readFileSync ( path . join ( __dirname , '..' , '..' , 'assets' , 'certs' , 'public.key' ) , 'utf8' ) , rolesClaim : 'booster:role' , } , ] ; } ) ;