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

[build-utils] add experimentalBypassFor field to Prerender #10481

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

ztanner
Copy link
Member

@ztanner ztanner commented Sep 8, 2023

This adds an experimental flag to Prerender outputs as a way to programmatically bypass the cache and hit the lambda directly, using a similar interface to has.

(Note: I copied over HasField from @vercel/router-utils since it wasn't available for import in build-utils, but can add it as a dep if that's preferred)

The specific use-case being targeted here relates to vercel/next.js#51534 -- a Next.js page marked static should still be able to initiate server actions.

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2023

🦋 Changeset detected

Latest commit: df6db9c

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

This PR includes changesets to release 8 packages
Name Type
@vercel/build-utils Patch
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/remix-builder Patch
@vercel/static-build Patch
@vercel-internals/types 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

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@ijjk ijjk added the pr: automerge Automatically merge the PR when checks pass label Sep 8, 2023
@kodiakhq kodiakhq bot merged commit d8bc570 into main Sep 8, 2023
107 checks passed
@kodiakhq kodiakhq bot deleted the feat/experimental-bypass-for branch September 8, 2023 23:34
styfle pushed a commit that referenced this pull request Sep 11, 2023
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/build-utils@7.2.0

### Minor Changes

- Add new optional prerender field: experimentalStreamingLambdaPath
([#10476](#10476))

- [build-utils] Add zero config detection for bun package manager
([#10486](#10486))

### Patch Changes

- add `experimentalBypassFor` field to Prerender
([#10481](#10481))

## vercel@32.2.1

### Patch Changes

- Update @vercel/fun@1.1.0
([#10477](#10477))

- [node] upgrade edge-runtime
([#10451](#10451))

- Updated dependencies
\[[`6784e7751`](6784e77),
[`a8ad17626`](a8ad176),
[`0ee089a50`](0ee089a),
[`f15cba614`](f15cba6),
[`b265e13d4`](b265e13),
[`50e04dd85`](50e04dd),
[`45b73c7e8`](45b73c7),
[`a732d30c8`](a732d30),
[`9d64312aa`](9d64312),
[`6baefc825`](6baefc8),
[`989f0d813`](989f0d8),
[`d8bc570f6`](d8bc570)]:
    -   @vercel/go@3.0.1
    -   @vercel/redwood@2.0.2
    -   @vercel/remix-builder@2.0.4
    -   @vercel/hydrogen@1.0.1
    -   @vercel/static-build@2.0.5
    -   @vercel/build-utils@7.2.0
    -   @vercel/next@4.0.3
    -   @vercel/node@3.0.5
    -   @vercel/python@4.0.1
    -   @vercel/ruby@2.0.2

## @vercel/client@13.0.3

### Patch Changes

- Updated dependencies
\[[`50e04dd85`](50e04dd),
[`45b73c7e8`](45b73c7),
[`d8bc570f6`](d8bc570)]:
    -   @vercel/build-utils@7.2.0

## @vercel/edge@1.0.2

### Patch Changes

- [node] upgrade edge-runtime
([#10451](#10451))

## @vercel/gatsby-plugin-vercel-builder@2.0.5

### Patch Changes

- Updated dependencies
\[[`50e04dd85`](50e04dd),
[`45b73c7e8`](45b73c7),
[`9d64312aa`](9d64312),
[`d8bc570f6`](d8bc570)]:
    -   @vercel/build-utils@7.2.0
    -   @vercel/node@3.0.5

## @vercel/go@3.0.1

### Patch Changes

- Update to esbuild script
([#10468](#10468))

## @vercel/hydrogen@1.0.1

### Patch Changes

- Use `build-builder.mjs` script to bundle, and remove types and source
maps ([#10480](#10480))

## @vercel/next@4.0.3

### Patch Changes

- fix content-type for RSC prefetches
([#10487](#10487))

## @vercel/node@3.0.5

### Patch Changes

- [node] upgrade edge-runtime
([#10451](#10451))

- Updated dependencies
\[[`50e04dd85`](50e04dd),
[`45b73c7e8`](45b73c7),
[`d8bc570f6`](d8bc570)]:
    -   @vercel/build-utils@7.2.0

## @vercel/python@4.0.1

### Patch Changes

- Update to esbuild script
([#10470](#10470))

## @vercel/redwood@2.0.2

### Patch Changes

- Update to esbuild script
([#10471](#10471))

## @vercel/remix-builder@2.0.4

### Patch Changes

- Use `build-builder.mjs` script to bundle, and remove types and source
maps ([#10479](#10479))

## @vercel/ruby@2.0.2

### Patch Changes

- Update to esbuild script
([#10472](#10472))

## @vercel/static-build@2.0.5

### Patch Changes

- Build package using "esbuild"
([#10462](#10462))

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.0.5

## @vercel-internals/types@1.0.10

### Patch Changes

- Updated dependencies
\[[`50e04dd85`](50e04dd),
[`45b73c7e8`](45b73c7),
[`d8bc570f6`](d8bc570)]:
    -   @vercel/build-utils@7.2.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Automatically merge the PR when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants