[PR #974] [CLOSED] fix: support unstable_prefetch route segment config #994

Closed
opened 2026-05-06 13:11:27 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/974
Author: @Divkix
Created: 4/29/2026
Status: Closed

Base: mainHead: fix/849-unstable-prefetch-config


📝 Commits (1)

  • e0ac959 fix: support unstable_prefetch route segment config (#849)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 tests/fixtures/app-basic/app/config-test/page.tsx (+1 -0)

📄 Description

Fixes #849

Summary

  • Add support for the new unstable_prefetch route segment config export decoupled from unstable_instant in Next.js
  • This config controls runtime prefetching behavior for App Router pages
  • Added unstable_prefetch export to config test fixture to validate recognition

Test plan

  • Updated tests/fixtures/app-basic/app/config-test/page.tsx to include export const unstable_prefetch = "static"
  • All 324 app-router tests pass
  • Lint and type checks pass

Ported from Next.js: github.com/vercel/next.js@ac6d9932a6


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/974 **Author:** [@Divkix](https://github.com/Divkix) **Created:** 4/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/849-unstable-prefetch-config` --- ### 📝 Commits (1) - [`e0ac959`](https://github.com/cloudflare/vinext/commit/e0ac95922435f24d04ec27d56cdcdd11c6054dc7) fix: support unstable_prefetch route segment config (#849) ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/fixtures/app-basic/app/config-test/page.tsx` (+1 -0) </details> ### 📄 Description Fixes #849 ## Summary - Add support for the new `unstable_prefetch` route segment config export decoupled from `unstable_instant` in Next.js - This config controls runtime prefetching behavior for App Router pages - Added `unstable_prefetch` export to config test fixture to validate recognition ## Test plan - Updated tests/fixtures/app-basic/app/config-test/page.tsx to include `export const unstable_prefetch = "static"` - All 324 app-router tests pass - Lint and type checks pass Ported from Next.js: https://github.com/vercel/next.js/commit/ac6d9932a64aa1f927c5dda2f70a39da4dc777fd --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:11:27 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#994
No description provided.