Skip to content

Keep internal pricing history out of the published landing page - #38

Merged
rschumann merged 1 commit into
mainfrom
fix/landing-no-internal-history
Jul 26, 2026
Merged

Keep internal pricing history out of the published landing page#38
rschumann merged 1 commit into
mainfrom
fix/landing-no-internal-history

Conversation

@rschumann

Copy link
Copy Markdown
Contributor

Follow-up to #37.

What I got wrong

I wrote the rationale for the rewrite into web/index.html as source comments — naming the retired plans, their $39/$79/$149 prices, and the money-back incident.

web/ is the website. Cloudflare Workers serves ./web directly (wrangler.jsoncassets.directory) and the Pages job does cp -rL web/. _site/. So that history shipped to anyone who hit View Source on get.traylinx.com. Confirmed against the live deploy:

259:  Explorer/Creator/Operator at $39/$79/$149 -- plans that no longer
348:  // only. Before 2026-07-26 this page hardcoded Explorer/Creator/Operator at
349:  // $39/$79/$149 with a "7-day money-back guarantee" -- three retired plans,

The suite didn't catch it because my own assertion stripped // comments before scanning — it was checking rendered copy when the whole file is public.

Fix

  • Both comments neutralised; they point at tests/landing-pricing.test.mjs (outside web/, not served) for the history
  • The two claim assertions now scan the entire file, comments included
  • New assertion: no $NN literal may appear anywhere in the published file

18 assertions, all passing.

🤖 Generated with Claude Code

I wrote the rationale for the rewrite into web/index.html as source
comments -- naming the retired plans, their $39/$79/$149 prices, and the
money-back incident.

web/ IS the website. Cloudflare Workers serves ./web directly
(wrangler.jsonc assets.directory) and the Pages job does
`cp -rL web/. _site/`. So that history shipped to anyone who hit View
Source on get.traylinx.com; confirmed against the live deploy.

The suite did not catch it because my own assertion stripped `//` comments
before scanning -- it was checking rendered copy when the whole file is
public.

Both comments now point at tests/landing-pricing.test.mjs (outside web/,
not served) for the history. The two claim assertions scan the ENTIRE file,
comments included, and a new one forbids any $NN literal anywhere in it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
tytus-cli b5f627c Jul 26 2026, 08:37 AM

@rschumann
rschumann merged commit 6cd99c6 into main Jul 26, 2026
5 of 7 checks passed
@rschumann
rschumann deleted the fix/landing-no-internal-history branch July 26, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant