fix(qenv): replace smartfile-based config loading with native fs and yaml parsing for env files

This commit is contained in:
2026-05-01 15:54:39 +00:00
parent c0d33340c3
commit 5e31dc93a3
13 changed files with 3777 additions and 3804 deletions
+3 -2
View File
@@ -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;
}
}