update el runtime to v1.2.0, refactor checkout script to external asset
Deploy marketing to Cloud Run / deploy (push) Has been cancelled

This commit is contained in:
Will Anderson
2026-05-03 01:13:25 -05:00
parent adf780b1a6
commit 8704f7cdfc
5 changed files with 1403 additions and 40 deletions
+1 -15
View File
@@ -490,21 +490,7 @@ fn checkout_page(plan: String, pub_key: String) -> String {
<script>window.NEURON_CFG=window.NEURON_CFG||{};window.NEURON_CFG.plan=\"" + plan + "\";window.NEURON_CFG.pub_key=\"" + pub_key + "\";</script><script src=\"/assets/js/e708dcbb3e7a.js\" defer></script>
" + (if is_free { "
<script>
(function(){
// Free tier: reveal payment section only after the user has created / signed in.
// The existing checkout JS sets auth-badge visible on successful auth — watch for that.
var pay = document.getElementById('payment-section');
if (!pay) return;
var timer = setInterval(function(){
var badge = document.getElementById('auth-badge');
if (badge && badge.offsetParent !== null) {
pay.style.display = '';
clearInterval(timer);
}
}, 150);
})();
</script>
<script src=\"/assets/js/7eac0621cbca.js\" defer></script>
" } else { "" }) + "
"
}