fix(qenv): replace smartfile-based config loading with native fs and yaml parsing for env files
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import * as plugins from './qenv.plugins.js';
|
||||
|
||||
export class CloudlyAdapter {
|
||||
public configVaultUrl: string;
|
||||
public configVaultUrl?: string;
|
||||
|
||||
constructor(configVaultUrl?: string) {
|
||||
this.configVaultUrl = configVaultUrl;
|
||||
}
|
||||
|
||||
public async getConfigBundle(): Promise<plugins.configvaultInterfaces.data.IConfigBundle> {
|
||||
public async getConfigBundle(): Promise<plugins.configvaultInterfaces.data.IEnvBundle | null> {
|
||||
if (this.configVaultUrl) {
|
||||
console.log(`ConfigVault specified through constructor`)
|
||||
} else if (process.env['CONFIGVAULT_URL']) {
|
||||
@@ -26,5 +26,6 @@ export class CloudlyAdapter {
|
||||
const response = await tr.fire({
|
||||
authorization: parsedUrl.pathname.replace('/', ''),
|
||||
})
|
||||
return response.envBundle;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user