Skip to content

Serve executor.sh marketing from v2 and keep v1's terms - #2213

Closed
RhysSullivan wants to merge 5 commits into
cloud/v1-edge-v2-flip-testsfrom
cloud/v1-edge-marketing
Closed

RhysSullivan wants to merge 5 commits into
cloud/v1-edge-v2-flip-testsfrom
cloud/v1-edge-marketing

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

v1's side of the marketing swap. On executor.sh the edge now forwards marketing to v2 over the V2 binding instead of proxying it to executor-marketing:

  • / without a wos-session cookie. With one, / stays v1's dashboard.
  • v2's marketing paths, matched exactly or as /x/* (everything under /x/), as v2's edge contract lists them: /home, /pricing, /pricing.md, /index.md, /setup-prompt.md, /llms.txt, /about-executor, /google-workspace, /blog, /blog/*, /docs, /docs/*, /apps, /apps/*, /experiments/*, /_astro/*, /authors/*, /og-image.png and /pattern-graph-paper.svg.
  • v2's browser telemetry, from two new wrangler vars: V2_ANALYTICS_PROXY_PATH (/api/<16 hex>, forwarded with everything below it) and V2_ERROR_TUNNEL_PATH (/api/<16 hex>/submit, forwarded exactly). Both are outputs of v2's production infrastructure, pinned in v2's edge contract. v1's own analytics proxy is 8 hex and stays with v1.

Marketing forwards drop every cookie except v2's anonymous executor_visitor, which keeps a visitor's homepage experiment stable; v1's session never reaches v2. Other v2 forwards still drop all cookies. Paths are not rewritten (/home goes to v2's /home).

Not forwarded:

  • /demo and /demo/*: an unreserved v1 organization slug. Bare /experiments stays with v1 too (apps and experiments are reserved slugs in the bottom PR).
  • The favicons: v1's dashboard serves identical files.
  • /terms, /privacy and /google-oauth: v2's terms cover only v2's per-member billing, and v1's cover usage-based plans; v1's privacy policy and Google OAuth disclosure cover v1's own app. They stay on executor-marketing, which now builds its assets under /_v1-marketing (its PostHog proxy moves there too), so they no longer collide with v2's /_astro. The MARKETING binding stays for that.
  • /setup and /api/detect were on the old list but neither marketing site serves them.

/docs on executor.sh is now v2's docs. The Mintlify docs proxy still serves /docs on other hosts. v1's PostHog proxy is unchanged.

Tests are in the PR above this one.

@RhysSullivan
RhysSullivan added this pull request to stack #2208 October 8, 2026 08:51
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 8, 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 successful!
View logs
executor-cloud ffbf496 Oct 08 2026, 07:02 PM

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 8, 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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing ffbf496 Commit Preview URL

Branch Preview URL
Oct 08 2026, 07:01 PM

@pkg-pr-new

pkg-pr-new Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2213

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2213

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2213

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2213

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2213

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2213

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2213

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2213

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2213

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2213

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2213

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2213

executor

npm i https://pkg.pr.new/executor@2213

commit: ffbf496

@RhysSullivan
RhysSullivan removed this pull request from stack #2208 October 8, 2026 19:00
@RhysSullivan
RhysSullivan force-pushed the cloud/v1-edge-marketing branch from 5a5881e to ffbf496 Compare October 8, 2026 19:00
@RhysSullivan
RhysSullivan changed the base branch from cloud/v1-edge-oauth-callback-tests to cloud/v1-edge-v2-flip-tests October 8, 2026 19:00
@RhysSullivan
RhysSullivan added this pull request to stack #2219 October 8, 2026 19:00
@RhysSullivan

Copy link
Copy Markdown
Collaborator Author

Merged into main through the integration PRs #2220 and #2217 (squash), so this layer is already live.

Sent from my Claude

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