[redwood] Support API endpoint configuration via export const config#11776
Merged
kodiakhq[bot] merged 5 commits intomainfrom Jul 1, 2024
Conversation
Uses the `@vercel/static-config` module to get the `export const config` configuration for Redwood.js API endpoints, so it's the same interface as vanilla JS endpoints, and Remix. The previous usage of `getLambdaOptionsFromFunction` was broken because it would cause the `@vercel/redwood` Builder to be executed multiple times (once for each endpoint).
🦋 Changeset detectedLatest commit: e0d5828 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
jeffsee55
reviewed
Jun 28, 2024
1 task
…builds-redwood-app-per-function-with
jeffsee55
approved these changes
Jul 1, 2024
…builds-redwood-app-per-function-with
Merged
feugy
pushed a commit
that referenced
this pull request
Jul 2, 2024
#11776) Uses the `@vercel/static-config` module to get the `export const config` configuration for Redwood.js API endpoints, so it's the same interface as vanilla JS endpoints, and Remix. The previous usage of `getLambdaOptionsFromFunction` was broken because it would cause the `@vercel/redwood` Builder to be executed multiple times (once for each endpoint).
EndangeredMassa
pushed a commit
that referenced
this pull request
Jul 3, 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/build-utils@8.3.0 ### Minor Changes - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ### Patch Changes - Add resolved node version range to warning message ([#11742](#11742)) ## vercel@34.3.0 ### Minor Changes - introduce --logs flag for deploy and inspect command to display build logs ([#11672](#11672)) - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5), [`77836e3c3`](77836e3), [`11d0a32d8`](11d0a32)]: - @vercel/build-utils@8.3.0 - @vercel/next@4.3.0 - @vercel/remix-builder@2.1.9 - @vercel/redwood@2.1.0 - @vercel/node@3.2.1 - @vercel/static-build@2.5.12 ## @vercel/next@4.3.0 ### Minor Changes - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ## @vercel/redwood@2.1.0 ### Minor Changes - Add support for API endpoint configuration via `export const config` syntax ([#11776](#11776)) ## @vercel/client@13.2.10 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/frameworks@3.0.3 ### Patch Changes - Update SvelteKit v1 devCommand ([#11494](#11494)) ## @vercel/fs-detectors@5.2.5 ### Patch Changes - Updated dependencies \[[`1484df7aa`](1484df7)]: - @vercel/frameworks@3.0.3 ## @vercel/gatsby-plugin-vercel-builder@2.0.34 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/node@3.2.1 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/remix-builder@2.1.9 ### Patch Changes - Update `@remix-run/dev` fork to v2.10.0 ([#11771](#11771)) ## @vercel/static-build@2.5.12 ### Patch Changes - Updated dependencies \[]: - @vercel/gatsby-plugin-vercel-builder@2.0.34 ## @vercel-internals/types@1.0.39 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
feugy
pushed a commit
that referenced
this pull request
Jul 4, 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/build-utils@8.3.0 ### Minor Changes - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ### Patch Changes - Add resolved node version range to warning message ([#11742](#11742)) ## vercel@34.3.0 ### Minor Changes - introduce --logs flag for deploy and inspect command to display build logs ([#11672](#11672)) - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5), [`77836e3c3`](77836e3), [`11d0a32d8`](11d0a32)]: - @vercel/build-utils@8.3.0 - @vercel/next@4.3.0 - @vercel/remix-builder@2.1.9 - @vercel/redwood@2.1.0 - @vercel/node@3.2.1 - @vercel/static-build@2.5.12 ## @vercel/next@4.3.0 ### Minor Changes - Adds the ability for builders to define a `diagnostics` step that is called after the build operation is done. ([#11653](#11653)) Implements the diagnostics step in the `next` builder. ## @vercel/redwood@2.1.0 ### Minor Changes - Add support for API endpoint configuration via `export const config` syntax ([#11776](#11776)) ## @vercel/client@13.2.10 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/frameworks@3.0.3 ### Patch Changes - Update SvelteKit v1 devCommand ([#11494](#11494)) ## @vercel/fs-detectors@5.2.5 ### Patch Changes - Updated dependencies \[[`1484df7aa`](1484df7)]: - @vercel/frameworks@3.0.3 ## @vercel/gatsby-plugin-vercel-builder@2.0.34 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/node@3.2.1 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 ## @vercel/remix-builder@2.1.9 ### Patch Changes - Update `@remix-run/dev` fork to v2.10.0 ([#11771](#11771)) ## @vercel/static-build@2.5.12 ### Patch Changes - Updated dependencies \[]: - @vercel/gatsby-plugin-vercel-builder@2.0.34 ## @vercel-internals/types@1.0.39 ### Patch Changes - Updated dependencies \[[`394eddb2a`](394eddb), [`b9d18c583`](b9d18c5)]: - @vercel/build-utils@8.3.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 task
Josh-Walker-GM
added a commit
to redwoodjs/graphql
that referenced
this pull request
Jul 19, 2024
Fixes: #10022 and #1664 Documents support for Vercel API endpoint (ie, functions) configuration via `export const config` syntax. Can deploy docs here vercel/vercel#11776 merges. --------- Co-authored-by: Josh GM Walker <56300765+Josh-Walker-GM@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uses the
@vercel/static-configmodule to get theexport const configconfiguration for Redwood.js API endpoints, so it's the same interface as vanilla JS endpoints, and Remix.The previous usage of
getLambdaOptionsFromFunctionwas broken because it would cause the@vercel/redwoodBuilder to be executed multiple times (once for each endpoint).