Show the application's public URL in server logs

Log the full public UI URL using the REPLIT_DEV_DOMAIN environment variable.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 418bf6f8-212b-4bb0-a7a5-8231a061da4e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a00ebe7c-c8e0-4118-81aa-ae93770e942f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9f85e954-647c-46a5-90a7-396e495a805a/418bf6f8-212b-4bb0-a7a5-8231a061da4e/Q83Uqvu
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
alexpaynex
2026-03-18 21:02:06 +00:00
parent b02efc9057
commit 4dd3c7f692

View File

@@ -16,4 +16,8 @@ if (Number.isNaN(port) || port <= 0) {
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
const domain = process.env["REPLIT_DEV_DOMAIN"];
if (domain) {
console.log(`Public UI: https://${domain}/api/ui`);
}
});