From dd78b45c3e03f780013b89fa2df5088a37cdae4c Mon Sep 17 00:00:00 2001 From: aarbit Date: Tue, 29 Sep 2026 16:12:14 -0500 Subject: [PATCH] Fix marketing site's Log in/Sign up links pointing to prod on staging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit site/ has no build step (served as-is, no per-environment templating), so its three app links were hardcoded to https://app.diagrav.com/ in the markup — meaning staging.diagrav.com was sending visitors to the production app instead of staging-app.diagrav.com. Rewrites them at load time based on location.hostname instead of maintaining a second copy of the file; defaults to the production app host everywhere except the exact staging hostname, so production's own links are unaffected. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_017DUU6CnxECCDeqDNYJgr5x --- site/index.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/site/index.html b/site/index.html index a976b31..a4d14a9 100644 --- a/site/index.html +++ b/site/index.html @@ -24,8 +24,8 @@ Library @@ -158,7 +158,7 @@

Stop guessing which cable you need

Plan the wiring first. Buy the right cables once.

- Sign up + Sign up
@@ -170,5 +170,21 @@ + +