The cloud worker owns executor.sh and only proxies an allow-list of paths to executor-marketing, so /og-image.png and /pattern-graph-paper.svg were falling through to the TanStack app and 404ing. Add both to the list.
Unified · Split
| @@ -9,7 +9,16 @@ import { handleSentryTunnelRequest } from "./sentry-tunnel"; · 8 unmodified lines | ||
| 9 | 9 | // Marketing routes — proxied to the marketing worker via service binding |
| 10 | 10 | // --------------------------------------------------------------------------- |
| 11 | 11 | |
| 12 | −const MARKETING_PATHS = ["/home", "/setup", "/privacy", "/terms", "/api/detect", "/_astro"]; | |
| 12 | +const MARKETING_PATHS = [ | |
| 13 | + "/home", | |
| 14 | + "/setup", | |
| 15 | + "/privacy", | |
| 16 | + "/terms", | |
| 17 | + "/api/detect", | |
| 18 | + "/_astro", | |
| 19 | + "/og-image.png", | |
| 20 | + "/pattern-graph-paper.svg", | |
| 21 | +]; | |
| 13 | 22 | |
| 14 | 23 | const isMarketingPath = (pathname: string) => |
| 15 | 24 | MARKETING_PATHS.some((p) => pathname === p || pathname.startsWith(`${p}/`)); |