import path from 'path' ; import { pathToFileURL } from 'url' ; export { readEnvFile } from '../common/readEnvFile' ; param developmentMode interface GetUiUrl { developmentMode : boolean ; developmentUrl : string ; productionAssetDirectory : string ; } export function getUiUrl ( { developmentMode , developmentUrl , productionAssetDirectory } ) { if ( developmentMode ) { return developmentUrl ; } return pathToFileURL ( path . join ( __dirname , '../../' , productionAssetDirectory , 'index.html' ) ) . toString ( ) ; }