mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 18:26:40 +00:00
Make private file optional
This commit is contained in:
@@ -174,6 +174,9 @@ export function readPrivateConfigFile() {
|
|||||||
|
|
||||||
// test if the config file is there
|
// test if the config file is there
|
||||||
if (!fs.existsSync(privateConfigFilePath1)) {
|
if (!fs.existsSync(privateConfigFilePath1)) {
|
||||||
|
console.warn(
|
||||||
|
`Private configuration file not found at ${privateConfigFilePath1}. Using default configuration.`
|
||||||
|
);
|
||||||
// load the default values of the zod schema and return those
|
// load the default values of the zod schema and return those
|
||||||
return privateConfigSchema.parse({});
|
return privateConfigSchema.parse({});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user