Your personal intelligence agent. Watches the world from multiple data sources and pings you when something changes.
feat(config): add PUBLIC_URL for bot status dashboard link
exe.dev user290fce9d414d
diff --git a/crucix.config.mjs b/crucix.config.mjsindex 887d760..8a6a63f 100644--- a/crucix.config.mjs+++ b/crucix.config.mjs@@ -4,6 +4,7 @@ import "./apis/utils/env.mjs"; // Load .env firstexport default {port: parseInt(process.env.PORT) || 3117,+ publicUrl: process.env.PUBLIC_URL || null,refreshIntervalMinutes: parseInt(process.env.REFRESH_INTERVAL_MINUTES) || 15,llm: {diff --git a/server.mjs b/server.mjsindex 3c094b4..330d77e 100644--- a/server.mjs+++ b/server.mjs@@ -71,7 +71,7 @@ if (telegramAlerter.isConfigured) {`Sources: ${sourcesOk}/${sourcesTotal} OK${sourcesFailed > 0 ? ` (${sourcesFailed} failed)` : ''}`,`LLM: ${llmStatus}`,`SSE clients: ${sseClients.size}`,- `Dashboard: http://localhost:${config.port}`,+ `Dashboard: ${config.publicUrl || `http://localhost:${config.port}`}`,].join('\n');});@@ -169,7 +169,7 @@ if (discordAlerter.isConfigured) {`Sources: ${sourcesOk}/${sourcesTotal} OK${sourcesFailed > 0 ? ` (${sourcesFailed} failed)` : ''}`,`LLM: ${llmStatus}`,`SSE clients: ${sseClients.size}`,- `Dashboard: http://localhost:${config.port}`,+ `Dashboard: ${config.publicUrl || `http://localhost:${config.port}`}`,].join('\n');});