-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[UI v2] feat: Updates VITE_API_URL to be configured throughout storybook and development #16620
Conversation
4597127
to
becdc33
Compare
becdc33
to
c127e59
Compare
c127e59
to
eb52c4b
Compare
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 left a couple of nits, but overall this makes a lot of sense to me!
ui-v2/package.json
Outdated
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.
should I use a .env
file instead?
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.
Yeah, that would probably be cleaner and reduce the chance for misconfiguration for devs
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.
cool, latest push updates to use .env file
8fcf00f
to
ffe49c9
Compare
ffe49c9
to
95b40f6
Compare
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.
LGTM!
Configures
VITE_API_URL
in dev, test, and storybook such thatVITE_API_URL
will be used regardless of the application's environment.This should set us up to use MSW in storybook now that API endpoints are no longer hardcoded
Screen.Recording.2025-01-05.at.11.36.55.PM.mov
Checklist
<link to issue>
"mint.json
.Relates to #15512