Update dev debug logs

This commit is contained in:
2026-04-05 06:34:28 +01:00
parent 333c84281d
commit 8d5b2a5c07
3 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -10,6 +10,8 @@ export default async function watcherEsbuildCTX() {
recursive: true,
persistent: true,
}, async (event, filename) => {
// log.info(`event: ${event}`);
// log.info(`filename: ${filename}`);
if (!filename)
return;
if (filename.match(/^\.\w+/)) {
@@ -71,7 +73,9 @@ export default async function watcherEsbuildCTX() {
? "Sylesheet"
: file_stat?.isDirectory()
? "Directory"
: "Page";
: filename.match(/\/pages\/api\//)
? "API Route"
: "Page";
await fullRebuild({
msg: `${type} ${action}: ${filename}. Rebuilding ...`,
});