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

[now-cli][now-routing-utils] Add support for v4 builders #3311

Merged
merged 3 commits into from
Nov 14, 2019

Conversation

styfle
Copy link
Member

@styfle styfle commented Nov 13, 2019

  • Add now dev BuildResultV4 type similar to V3 but no routes, only superstatic keys
  • Add validation to @now/routing-utils to ensure V4 Builders do not return routes

Note, no builders have been changed yet because this needs to be shipped first so we can bump build-utils and then builders will work in production. Then in a separate PR, we can update builders to V4.

@styfle styfle changed the title [now dev] Add support for v4 builders [now dev][now-routing-utils] Add support for v4 builders Nov 14, 2019
@styfle styfle changed the title [now dev][now-routing-utils] Add support for v4 builders [now-cli][now-routing-utils] Add support for v4 builders Nov 14, 2019
@styfle styfle marked this pull request as ready for review November 14, 2019 20:22
@kodiakhq kodiakhq bot merged commit 49cba94 into master Nov 14, 2019
@kodiakhq kodiakhq bot deleted the PRODUCT-341/now-dev-builder-v4 branch November 14, 2019 20:48
kodiakhq bot pushed a commit that referenced this pull request Nov 21, 2019
…#3333)

Reverts #3311

Previously, we thought we were going to use version 4 to support builder rewrites/redirects => routes. But that is no longer necessary. So instead version 4 will be builders that accept multiple file entrypoints.

Until v4 can be implemented, this reverts v4 changes.

Additionally, I added a helpful error message when the CLI does not support the builder version. In a future PR, we will add better version locking to avoid this type of version mismatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants