From ca486a6196b96c01b0eb7eea5147a73fbf3afc89 Mon Sep 17 00:00:00 2001 From: aewing Date: Wed, 7 Jan 2026 06:12:34 +0000 Subject: [PATCH] chore: switch to TEST mode and add environment indicator --- frontend/index.html | 30 ++++++++++++++++++++++++++++-- server.ts | 11 +++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 81e3e83..85b5ef9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -955,9 +955,35 @@ -
- v1.0.0-beta3 +
+ + v1.0.0-beta3
+ + diff --git a/server.ts b/server.ts index 043f4b3..da124c8 100644 --- a/server.ts +++ b/server.ts @@ -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}`);