diff --git a/ccw/src/core/routes/hooks-routes.ts b/ccw/src/core/routes/hooks-routes.ts index cd4ef20e..6f7ac301 100644 --- a/ccw/src/core/routes/hooks-routes.ts +++ b/ccw/src/core/routes/hooks-routes.ts @@ -39,6 +39,9 @@ function readSettingsFile(filePath: string): Record { return {}; } const content = readFileSync(filePath, 'utf8'); + if (!content.trim()) { + return {}; + } return JSON.parse(content); } catch (error: unknown) { console.error(`Error reading settings file ${filePath}:`, error);