diff --git a/scripts/workers/job_server.py b/scripts/workers/job_server.py
index 68db1ce..4066fcb 100644
--- a/scripts/workers/job_server.py
+++ b/scripts/workers/job_server.py
@@ -44,6 +44,16 @@ logging.basicConfig(
PORT = int(os.getenv("WORKER_PORT", "8090"))
MAX_WORKERS = int(os.getenv("MAX_WORKERS", "3"))
+
+def _site_url() -> str:
+ """Public site base URL for customer-facing links (no trailing /)."""
+ return os.getenv("SITE_URL", "https://performancewest.net").rstrip("/")
+
+
+def _portal_url() -> str:
+ """Customer portal base URL where clients view orders (no trailing /)."""
+ return os.getenv("PORTAL_URL", "https://portal.performancewest.net").rstrip("/")
+
# Job tracking
active_jobs: dict[str, dict] = {}
completed_jobs: list[dict] = [] # Last 100 completed
@@ -858,8 +868,10 @@ def _send_instant_delivery(
"Section 8.",
"Because it is a Word file, you and your attorney can edit it "
"freely to match your operation.",
- "Questions or need a correction? Just reply to this email or "
- "contact us at info@performancewest.net — "
"we'll help right away at no additional charge.",
"This fee is tax "
@@ -867,8 +879,8 @@ def _send_instant_delivery(
"",
"— Performance West Compliance Team",
]
- cta_text = "Manage My DOT Compliance"
- cta_url = "https://performancewest.net/services/dot-drug-alcohol"
+ cta_text = "View in Portal \u2192"
+ cta_url = _portal_url()
headline = "Your DOT Drug & Alcohol Compliance Binder is ready"
else:
body_parts = [