Skip to content

chore(vercel): add react-router preview build and fix dir-index navigation#31105

Merged
ShaneK merged 1 commit into
major-9.0from
chore/vercel-add-rr
Apr 30, 2026
Merged

chore(vercel): add react-router preview build and fix dir-index navigation#31105
ShaneK merged 1 commit into
major-9.0from
chore/vercel-add-rr

Conversation

@ShaneK

@ShaneK ShaneK commented Apr 30, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, reviewing react router based PRs isn't possible using the vercel preview link

What is the new behavior?

This PR adds support for the preview link to support react router 6 and tries to fix some weird edge cases where navigating to a route would sometimes not show the tests in that route

Does this introduce a breaking change?

  • Yes
  • No

Other information

The new React Router preview app shares the React package gate (REACT_PKG_OK) because @ionic/react-router is built inside build_react_pkgs(). Test app builds run in parallel under that gate, then wait reports per-app failures.

Preview URLs (once Vercel builds this branch):

@ShaneK ShaneK requested a review from a team as a code owner April 30, 2026 15:27
@ShaneK ShaneK requested a review from thetaPC April 30, 2026 15:27
@vercel

vercel Bot commented Apr 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Apr 30, 2026 3:28pm

Request Review

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Comment on lines +276 to +277
# The react-router test apps require --legacy-peer-deps (mixed react versions
# across @ionic/react peer ranges).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming there's a ticket to remove the --legacy-peer-deps, let's add the TODO here.

@ShaneK ShaneK Apr 30, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not, and I don't really want to. Any time we upgrade react router we'd have to add it back and there's no harm in having it at this point.

@ShaneK ShaneK merged commit 33aafec into major-9.0 Apr 30, 2026
50 checks passed
@ShaneK ShaneK deleted the chore/vercel-add-rr branch April 30, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package package: react @ionic/react package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants