Skip to content

Commit b0f4b82

Browse files
authored
Proxy /authors to marketing so blog author avatars resolve (#1206)
1 parent 510eb0a commit b0f4b82

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ describe("isMarketingPath", () => {
1818
"/llms.txt",
1919
"/og-image.png",
2020
"/_astro/app.css",
21+
// The blog author card loads its avatar from marketing's public/authors;
22+
// without this the pfp 404s on every post.
23+
"/authors/rhys-sullivan.png",
2124
];
2225
for (const pathname of marketing) {
2326
it(`proxies ${pathname} to marketing`, () => {

apps/cloud/src/edge/marketing.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const MARKETING_PATHS = [
2222
"/llms.txt",
2323
"/api/detect",
2424
"/_astro",
25+
"/authors",
2526
"/og-image.png",
2627
"/pattern-graph-paper.svg",
2728
];

0 commit comments

Comments
 (0)