Overrides CHROMATIC_API_URL in Storybook to /api, to keep stories from talking to https://www.chromatic.com/api (the default API URL), whilst still allowing the live Visual Test addon to function normally.
Note that overriding CHROMATIC_BASE_URL didn't work, seemingly because it's already defined in vite.config.ts.
I also upgraded the msw, msw-storybook-addon and graphql dependencies.
Overrides
CHROMATIC_API_URL
in Storybook to/api
, to keep stories from talking tohttps://www.chromatic.com/api
(the default API URL), whilst still allowing the live Visual Test addon to function normally.Note that overriding
CHROMATIC_BASE_URL
didn't work, seemingly because it's already defined invite.config.ts
.I also upgraded the
msw
,msw-storybook-addon
andgraphql
dependencies.