Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Include static routes from generateStaticParams in server manifest. #25003

Merged
merged 3 commits into from Oct 24, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

  • ENG-10421
  • If a dynamic route uses generateStaticParams then the routes manifest should be augmented to use any locally built HTML files over the dynamic representation.

How

  • Load one manifest with the client context and load all routes, then load a second manifest and mix them together. :[

Test Plan

  • Added an e2e test for this.

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Oct 23, 2023
@EvanBacon EvanBacon merged commit 2bd9eae into main Oct 24, 2023
11 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/router/ssg-in-server-manifest branch October 24, 2023 17:51
marklawlor pushed a commit that referenced this pull request Oct 30, 2023
…ifest. (#25003)

# Why

- ENG-10421
- If a dynamic route uses `generateStaticParams` then the routes
manifest should be augmented to use any locally built HTML files over
the dynamic representation.

<!--
Please describe the motivation for this PR, and link to relevant GitHub
issues, forums posts, or feature requests.
-->

# How

- Load one manifest with the client context and load all routes, then
load a second manifest and mix them together. :[

# Test Plan

- Added an e2e test for this.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants