-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: return to window origin locally #230
Conversation
@@ -8,7 +8,7 @@ export const { | |||
const { VITE_IS_LOCAL_ENVIRONMENT } = import.meta.env; | |||
|
|||
const generateBcStorefrontAPIBaseUrl = () => { | |||
if (VITE_IS_LOCAL_ENVIRONMENT === 'TRUE') return '/bigcommerce'; | |||
if (VITE_IS_LOCAL_ENVIRONMENT === 'TRUE') return window.origin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this is not needed anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed your suggestion, you're right, it not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this.
Some suggestions for fixing the tests.
fix/B2B-2203...fix/B2B-2203-improve-tests
* fix: correct the tests * fix: clean console log --------- Co-authored-by: Micah Thomas <[email protected]>
Jira: B2B-2203
What/Why?
Using window origin url while login in local env. Right now is creating an incorrect url for the login graphql api call.
/bigcommerce/graphql
Rollout/Rollback
Revert
Testing
login to buyer portal locally