Skip to content

fix: route GitHub Pages navigation to static RSC files - #30

Merged
owjs3901 merged 1 commit into
mainfrom
fix/pages-static-rsc-path
Sep 1, 2026
Merged

fix: route GitHub Pages navigation to static RSC files#30
owjs3901 merged 1 commit into
mainfrom
fix/pages-static-rsc-path

Conversation

@owjs3901

@owjs3901 owjs3901 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve the /yeollin-cms project prefix for vinext RSC requests
  • rewrite browser RSC fetches from extensionless routes to exported .rsc files
  • map the project root to index.rsc and retain cache-busting query parameters
  • normalize GitHub Pages' octet-stream MIME response for vinext

Root cause

GitHub Pages serves /yeollin-cms/media?_rsc=... as HTML. The exported RSC payload is /yeollin-cms/media.rsc, so vinext classified the HTML response as invalid and performed a hard navigation.

Verification

  • �un run tsc --noEmit in packages/app`n- demo production build: 22 routes prerendered, 0 skipped
  • generated client chunk contains the /yeollin-cms prefix, RSC-header detection, and .rsc rewrite
  • live endpoint comparison: extensionless route returns ext/html; .rsc route returns the RSC payload

@owjs3901
owjs3901 merged commit 78e260e into main Sep 1, 2026
1 check passed
@owjs3901
owjs3901 deleted the fix/pages-static-rsc-path branch September 1, 2026 09:46
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.

1 participant