Skip to content

Fix Next.js segment prefetch cache key - #6983

Open
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6969-next-prefetch-key
Open

Fix Next.js segment prefetch cache key#6983
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6969-next-prefetch-key

Conversation

@omercnet

@omercnet omercnet commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • include next-router-segment-prefetch in the Next.js CloudFront cache key
  • cover distinct segment-prefetch keys and preserve image accept-only behavior

Verification

  • bun test platform/test/components/cloudfront.test.ts
  • bun run typecheck
  • bun run build:platform

Closes #6969

@omercnet
omercnet force-pushed the fix/6969-next-prefetch-key branch from f5b61aa to cfb237c Compare August 28, 2026 20:10
@omercnet omercnet changed the title fix(aws): include segment prefetch in Next.js cache key Fix Next.js segment prefetch cache key Aug 28, 2026
@omercnet

Copy link
Copy Markdown
Author

CI is waiting for maintainer approval because this pull request originates from a fork. Please approve the workflow run: https://github.com/anomalyco/sst/actions/runs/33207086592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setNextjsCacheKey() omits next-router-segment-prefetch, causing an unbounded RSC prefetch loop on Next 16 prerendered routes

1 participant