-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: Add vtexinternal
as API environment (SFS-1667)
#2508
Open
lucasfp13
wants to merge
10
commits into
main
Choose a base branch
from
feat/vtexinternal-api-environment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
lucasfp13
added
the
don't merge
Blocked by some reason - - Please mention the reason
label
Oct 16, 2024
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
lucasfp13
changed the title
feat: Add
feat: Add Oct 22, 2024
vtexinternal
as API environmentvtexinternal
as API environment (SFS-1667)
lucasfp13
added
enhancement
New feature or request
performance
Pull requests related to perfomance issues
and removed
don't merge
Blocked by some reason - - Please mention the reason
labels
Oct 22, 2024
lucasfp13
requested review from
emersonlaurentino,
renatamottam and
gvc
and removed request for
a team and
renatamottam
October 22, 2024 18:24
gvc
approved these changes
Oct 24, 2024
pedromtec
reviewed
Oct 24, 2024
pedromtec
approved these changes
Oct 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
What's the purpose of this pull request?
This PR intends to use the
vtexinternal
internal domain on calls to VTEX APIs.How it works?
Adding the new type (
vtexinternal
) to theenvironment
API option, the@faststore/core
will receive this value through the global envHOMEBREW_API_ENVIRONMENT
from stores served by Homebrew and build the BFF server using this value.Then, on
@faststore/api
we will read thisenvironment
value and fetch the API calls using thevtexinternal
domain when it should.How to test it?
Check if all of the GraphQL requests are status 200.
The tests should be performed from the Starter deploy preview only, since locally we should not use this host (we validate that in the code).
Starters Deploy Preview
vtex-sites/starter.store#580
References
Check the
Opportunity: use vtexinternal on Homebrew
internal doc.