styled-components-website icon indicating copy to clipboard operation
styled-components-website copied to clipboard

Serve images with next-gen formats

Open brnt-toast opened this issue 2 years ago • 3 comments

Next.js does this automagically with next/image component readmore about next.js

brnt-toast avatar Apr 06 '23 22:04 brnt-toast

I'll look into this one tomorrow night. If there isn't a separate pull request from a branch by Sunday the 7th. Assign it to me so I can track this issue better and start working on the TS conversation after.

brnt-toast avatar May 05 '23 05:05 brnt-toast

update: I hit a road block. The next-gen formats using next/images requires next13, which requires react18, and we a have dependency on @wojtekmaj/enzyme-adapter-react-17 that locks into react17 because enzyme is now abandoned. It also recommend to move towards react-testing-library.

Combined with moving over to typescript has left me be bit stumped.

brnt-toast avatar May 06 '23 03:05 brnt-toast

I think its better upgrade to React 18 and to RTL.

vsnikhilvs avatar Oct 02 '24 06:10 vsnikhilvs