Next.js Discord

Discord Forum

How to not use NextJs image optimization for SPA?

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Jumbo flying squidOP
Hey all, I'm moving a SPA from CRA to nextjs. A large issue right now is having to import all image imports and updating any refs to use .src. Is there a way to not have to do this? It would be a massive pain for our huge repo.

3 Replies

@Jumbo flying squid Next.js has some "codemods" available, not sure if they'd fit your use case exactly but definitely worth checking out
Jumbo flying squidOP
dont think so. I just want to disable the nextjs image optimization so it can fallback to webpacks or whatever cra uses