From dc8cb18751d6291ee53f090c1493d9c4f5532782 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Thu, 23 Apr 2026 10:18:11 +0000 Subject: [PATCH 1/3] Fix image cache for website --- website/lib/image-optimization.ts | 18 ++++++++++++++++-- .../articles/doc-article-navigation.tsx | 4 +++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/website/lib/image-optimization.ts b/website/lib/image-optimization.ts index a07813c49e0..d73ac323d61 100644 --- a/website/lib/image-optimization.ts +++ b/website/lib/image-optimization.ts @@ -143,6 +143,16 @@ function ensureOutputDir(): void { fs.mkdirSync(OUTPUT_DIR, { recursive: true }); } +function cachedVariantsExist(cached: CachedImage): boolean { + for (const entry of cached.srcSet) { + const outputPath = path.join(OUTPUT_DIR, path.basename(entry.src)); + if (!fs.existsSync(outputPath)) { + return false; + } + } + return true; +} + /** * Generate a tiny base64 placeholder image for blur-up effect. */ @@ -258,8 +268,12 @@ export async function getOptimizedImageProps( const cache = loadCache(); const map = loadImageMap(); - // Check cache - if (cache[hash]) { + // Check cache. The cache manifest is persisted across CI runs via + // actions/cache, but the generated variant files in public/optimized/ are + // not. A cache hit without the corresponding files on disk means the deploy + // would reference variants that do not exist, so verify file presence + // before trusting the cache. + if (cache[hash] && cachedVariantsExist(cache[hash])) { const cached = cache[hash]; const result = buildPropsFromCached(cached, imagePath, sizes); diff --git a/website/src/components/articles/doc-article-navigation.tsx b/website/src/components/articles/doc-article-navigation.tsx index 900d8d48d6a..676c1fc8ce2 100644 --- a/website/src/components/articles/doc-article-navigation.tsx +++ b/website/src/components/articles/doc-article-navigation.tsx @@ -432,7 +432,8 @@ const ProductVersionDialog = styled.div<{ border: 1px solid ${THEME_COLORS.boxBorder}; border-radius: var(--button-border-radius); padding: 2px; - width: 59px; + width: max-content; + min-width: 59px; backdrop-filter: blur(2px); background-image: linear-gradient( to right bottom, @@ -491,6 +492,7 @@ const VersionLink = styled(Link).withConfig({ color: ${THEME_COLORS.text}; border-radius: var(--button-border-radius); padding: 6px 9px; + white-space: nowrap; cursor: pointer; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; From 36f8cb45352f981114d6a1c41cbb65d55c71d773 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Thu, 23 Apr 2026 10:21:42 +0000 Subject: [PATCH 2/3] fix workflow --- .github/workflows/publish-website.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index 88ae1afc631..ade6023402f 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -40,7 +40,9 @@ jobs: - name: Cache Next.js Build Artifacts uses: actions/cache@v5 with: - path: website/.next/cache + path: | + website/.next/cache + website/public/optimized key: ${{ runner.os }}-nextjs-${{ hashFiles('website/yarn.lock') }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('website/yarn.lock') }}- From 666d279d6396991ca32da9a77b029bddfaedbc0e Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Thu, 23 Apr 2026 10:26:02 +0000 Subject: [PATCH 3/3] edits --- website/src/components/layout/site/header.tsx | 34 ++++++++++++++++++- website/src/page-components/index.tsx | 4 +-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/website/src/components/layout/site/header.tsx b/website/src/components/layout/site/header.tsx index 010d437811a..5e9045c1009 100644 --- a/website/src/components/layout/site/header.tsx +++ b/website/src/components/layout/site/header.tsx @@ -642,6 +642,7 @@ const DeveloperNavItem: FC = ({ ({ hero, active, self }) => hero && active && self === false ) ); + const latestBlogPost = useLatestBlogPost(); const [subNav, navHandlers, linkHandlers] = useSubNav( (hideTopAndSubNav, hideSubNav) => ( @@ -717,7 +718,7 @@ const DeveloperNavItem: FC = ({ - {workshop && ( + {workshop ? ( <> Upcoming Workshop @@ -731,6 +732,37 @@ const DeveloperNavItem: FC = ({ {workshop.title} + ) : ( + latestBlogPost && ( + <> + Latest Blog Post + + {latestBlogPost.featuredImage && ( + + {latestBlogPost.title} + + )} + + {latestBlogPost.date} + {latestBlogPost.readingTime && + " ・ " + latestBlogPost.readingTime} + + {latestBlogPost.title} + + + ) )} diff --git a/website/src/page-components/index.tsx b/website/src/page-components/index.tsx index c6bfbfbc039..72efa2d9b83 100644 --- a/website/src/page-components/index.tsx +++ b/website/src/page-components/index.tsx @@ -51,8 +51,8 @@ const IndexPage: FC = ({ recentPosts }) => { - Unleash the Power - of Unified Services + The API Platform + for Humans and Agents Unify all your APIs into a comprehensive company graph, streamlining data accessibility and enhancing integration. Transform the way you