Skip to content

Commit f7fca86

Browse files
committed
Route pricing to marketing
1 parent 704988a commit f7fca86

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/cloud/src/edge/marketing.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe("isMarketingPath", () => {
1212
"/home",
1313
"/privacy",
1414
"/terms",
15+
"/pricing",
1516
"/about-executor",
1617
"/google-oauth",
1718
"/google-workspace",
@@ -66,6 +67,12 @@ describe("marketingProxyRequest", () => {
6667
expect(marketingProxyRequest(request)?.url).toBe("https://executor.sh/blog/post");
6768
});
6869

70+
it("routes /pricing to the marketing worker", () => {
71+
const request = new Request("https://executor.sh/pricing");
72+
73+
expect(marketingProxyRequest(request)?.url).toBe("https://executor.sh/pricing");
74+
});
75+
6976
it("rewrites the public home alias to the marketing root", () => {
7077
const request = new Request("https://executor.sh/home?source=test");
7178

‎apps/cloud/src/edge/marketing.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const MARKETING_PATHS = [
1414
"/setup",
1515
"/privacy",
1616
"/terms",
17+
"/pricing",
1718
"/about-executor",
1819
"/google-oauth",
1920
"/google-workspace",

0 commit comments

Comments
 (0)