trussworks / react-uswds

USWDS 3.0 components built in React
https://trussworks.github.io/react-uswds/
Apache License 2.0
177 stars 80 forks source link

[build] Fix USWDS.svg 404 in storybook #2846

Open werdnanoslen opened 5 months ago

werdnanoslen commented 5 months ago

ReactUSWDS Version & USWDS Version:

Current main, tag 9.0.0

Describe the bug

Some recent Vite/build changes seem to have resulted in the uswds.svg 404ing on the deployed storybook, though it shows locally.

To Reproduce Steps to reproduce the behavior:

  1. Go to deployed storybook
  2. See there's no uswds svg logo in top-left corner
  3. See 404 in console

Expected behavior

Logo should show up

Screenshots

Observed, deployed:

Screenshot 2024-03-22 at 12 32 14 PM

Expected, locally:

Screenshot 2024-03-22 at 12 31 26 PM

Additional context

Device and Browser Information (please complete the following information if describing a UI bug):

jpandersen87 commented 5 months ago

Have a fix in #2847