From 4dd3c7f692afc0d69838b6be1b26129038f42eec Mon Sep 17 00:00:00 2001 From: alexpaynex <55271826-alexpaynex@users.noreply.replit.com> Date: Wed, 18 Mar 2026 21:02:06 +0000 Subject: [PATCH] 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 --- artifacts/api-server/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artifacts/api-server/src/index.ts b/artifacts/api-server/src/index.ts index f7394d1..1e466e4 100644 --- a/artifacts/api-server/src/index.ts +++ b/artifacts/api-server/src/index.ts @@ -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`); + } });