chore: switch to TEST mode and add environment indicator

This commit is contained in:
2026-01-07 06:12:34 +00:00
parent d8cc287330
commit ca486a6196
2 changed files with 39 additions and 2 deletions
+11
View File
@@ -40,6 +40,14 @@ console.log(' Excel Table: ' + activeConfig.excelTable);
console.log('*'.repeat(60) + '\n');
const app = new Hono();
// Environment config endpoint
app.get('/api/config', (c) => {
return c.json({
mode: MODE,
description: activeConfig.description
});
});
// ============================================================================
// ERROR LOGGING
@@ -1178,6 +1186,9 @@ app.post('/api/test-teams-webhook', async (c) => {
return c.json({ success: ok, status: resp.status, body: text });
});
// Serve static files from frontend directory
app.use('/*', serveStatic({ root: './frontend' }));
const PORT = Number(process.env.PORT || 3020);
console.log(`Job Creation with Excel Sync server running at http://localhost:${PORT}`);