mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-19 06:25:40 +00:00
Load encryption file dynamically
This commit is contained in:
@@ -172,6 +172,12 @@ export function readPrivateConfigFile() {
|
||||
return {};
|
||||
}
|
||||
|
||||
// test if the config file is there
|
||||
if (!fs.existsSync(privateConfigFilePath1)) {
|
||||
// load the default values of the zod schema and return those
|
||||
return privateConfigSchema.parse({});
|
||||
}
|
||||
|
||||
const loadConfig = (configPath: string) => {
|
||||
try {
|
||||
const yamlContent = fs.readFileSync(configPath, "utf8");
|
||||
|
||||
Reference in New Issue
Block a user