diff --git a/src/hooks.ts b/src/hooks.ts index 37786cb..fcec439 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -7,6 +7,7 @@ let adminPath = 'admin'; try { const config = JSON.parse(fs.readFileSync(path.resolve('data', 'config.json'), 'utf8')); adminPath = (config.adminPath ?? 'admin').replace(/^\/|\/$/g, '') || 'admin'; + console.log('[hooks] adminPath set to:', adminPath); } catch { // config.json missing or unreadable — fall back to 'admin' }