Skip to content

[remix] extract remaining framework specific settings to FrameworkSettings - #12992

Merged
erikareads merged 3 commits into
mainfrom
erikarowland/extract-remaining-framework-specifics-to-settings
Feb 5, 2025
Merged

erikareads merged 3 commits into
mainfrom
erikarowland/extract-remaining-framework-specifics-to-settings

Conversation

@erikareads

@erikareads erikareads commented Jan 31, 2025 •

Copy link
Copy Markdown
Contributor

This PR lays the groundwork for creating a common Node ServerFunction creation function and a common Edge ServerFunction creation function that both Remix and React Router use. This PR extracts the last remaining framework specific settings into FrameworkSettings.

Currently, we have three functions:

  • createRenderReactRouterFunction - which has both Node and Edge logic included
  • createRenderNodeFunction
  • createRenderEdgeFunction

Much of the logic between the Node and Edge paths are shared between the React Router and Remix cases. This PR extracts all the information needed to consolidate into one Node function and one Edge function that both React Router and Remix can go through.

The logic for creating for creating a function doesn't seem like it should vary between React Router and Remix, and it's likely that these need to be updated at the same time in the future. Thus it makes sense to move towards consolidating their logic.

@changeset-bot

changeset-bot Bot commented Jan 31, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9efe117

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/remix-builder Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@erikareads
erikareads added this pull request to the merge queue Feb 5, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 5, 2025
@erikareads
erikareads added this pull request to the merge queue Feb 5, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 5, 2025
@erikareads
erikareads added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 9eb8f56 Feb 5, 2025
@erikareads
erikareads deleted the erikarowland/extract-remaining-framework-specifics-to-settings branch February 5, 2025 22:14
github-merge-queue Bot pushed a commit that referenced this pull request Feb 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Patch Changes

- Add tracer utility to @vercel/build-utils
([#13013](#13013))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`5c404c56702ff8685628ffe0db8a90e8cb87568a`](5c404c5),
[`9eb8f5646dd8079398b7a32cd4a9e8ed6cb240dd`](9eb8f56)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5c404c56702ff8685628ffe0db8a90e8cb87568a`](5c404c5)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5c404c56702ff8685628ffe0db8a90e8cb87568a`](5c404c5)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5c404c56702ff8685628ffe0db8a90e8cb87568a`](5c404c5)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [remix] extract remaining framework specific settings to
FrameworkSettings
([#12992](#12992))

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 12, 2025
…#13023)

Building on #12992 this PR unifies the logic for function creation
between Remix and React Router. There was also a lot of duplicated logic
between Edge and Node runtime function creation, which I've refactored
into a single code path.

Previously, there were a lot of checks that switched dependent on
runtime (node vs edge), this PR centralizes that check into
`getRuntimeSettings`.
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Patch Changes

- Add tracer utility to @vercel/build-utils
([#13013](vercel/vercel#13013))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`5cbd17a62f6180e5bbec29eeeadb1e4bf2bced1a`](vercel/vercel@5cbd17a),
[`38bff029c54dd38dad49406f6e7c30253aba0d99`](vercel/vercel@38bff02)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5cbd17a62f6180e5bbec29eeeadb1e4bf2bced1a`](vercel/vercel@5cbd17a)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5cbd17a62f6180e5bbec29eeeadb1e4bf2bced1a`](vercel/vercel@5cbd17a)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5cbd17a62f6180e5bbec29eeeadb1e4bf2bced1a`](vercel/vercel@5cbd17a)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [remix] extract remaining framework specific settings to
FrameworkSettings
([#12992](vercel/vercel#12992))

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 9efe1170 Deployed Jan 31, 2025 by vercel[bot]
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.

3 participants