mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-02 13:41:09 +00:00
Make private file optional
This commit is contained in:
parent
4d87333b43
commit
aebe6b80b7
1 changed files with 3 additions and 0 deletions
|
|
@ -174,6 +174,9 @@ export function readPrivateConfigFile() {
|
|||
|
||||
// test if the config file is there
|
||||
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
|
||||
return privateConfigSchema.parse({});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue