Skip to content

[cli] allow prerender to stream - #11745

Merged
craigandrews merged 2 commits into
mainfrom
craigandrews/do-not-block-streaming-for-prerender
Jun 18, 2024
Merged

craigandrews merged 2 commits into
mainfrom
craigandrews/do-not-block-streaming-for-prerender

Conversation

@craigandrews

@craigandrews craigandrews commented Jun 18, 2024 •

Copy link
Copy Markdown
Contributor

Allow all app router lambdas to use streaming, including prerender and experimental PPR.

Practically speaking this is a no-op at the moment; api-builds has a feature-flagged check to ensure any prerender function will not stream. It is effectively a duplicate of the check that this PR removes.

This is the check in api-builds: https://github.com/vercel/api/blob/987de85d6a38a34f717cd1372826cbaf6113dd7d/services/api-builds/src/endpoints/post-lambda.ts#L273

@changeset-bot

changeset-bot Bot commented Jun 18, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6070d67

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

This PR includes changesets to release 1 package
Name Type
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

Comment thread packages/next/src/server-build.ts Resolved
@craigandrews
craigandrews merged commit f0d6aca into main Jun 18, 2024
@craigandrews
craigandrews deleted the craigandrews/do-not-block-streaming-for-prerender branch June 18, 2024 14:48
TooTallNate added a commit that referenced this pull request Jun 19, 2024
TooTallNate added a commit that referenced this pull request Jun 19, 2024
The changeset file from #11745 incorrectly references the `vercel`
package, but the code change is in `@vercel/next`. The changeset file
needs to reference that package otherwise a new version of
`@vercel/next` will not be published to include the change from the PR.
EndangeredMassa pushed a commit that referenced this pull request Jun 25, 2024
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]

### Minor Changes

- Ignore `shouldAddHelpers` when exporting a server to match production
([#11738](#11738))

### Patch Changes

- Update undici dep to address vulnerabilities
([#11749](#11749))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`fd069f184`](fd069f1),
[`8ae40d096`](8ae40d0),
[`f0d6acaa0`](f0d6aca),
[`e33756494`](e337564),
[`dcb7fa5f9`](dcb7fa5)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Allow app router prerender functions to use streaming
([#11745](#11745))

- Add experimental preload flag
([#11753](#11753))

## @vercel/[email protected]

### Patch Changes

- Add opt-in env var to use native Fetch polyfills
([#11748](#11748))

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

This branch was successfully deployed

1 active deployment
Preview — 6070d674 Deployed Jun 18, 2024 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.

2 participants