Skip to content

Commit 9b1d596

Browse files
committed
fix(cloud): proxy marketing's og-image + graph-paper to marketing worker
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.
1 parent 42674bb commit 9b1d596

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

apps/cloud/src/start.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ import { handleSentryTunnelRequest } from "./sentry-tunnel";
99
// Marketing routes — proxied to the marketing worker via service binding
1010
// ---------------------------------------------------------------------------
1111

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+
];
1322

1423
const isMarketingPath = (pathname: string) =>
1524
MARKETING_PATHS.some((p) => pathname === p || pathname.startsWith(`${p}/`));

0 commit comments

Comments
 (0)