Next.js Discord

Discord Forum

Mac Local Environment Keeps Breaking Next-Image

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
I have to keep destroying the .next folder and restarting the dev server.

Is this a known issue on Mac local development environments?

Is there a fix?

ChatGPT said it might be turbopack.

7 Replies

in your next.config.js, please disable persistent caching
Asiatic LionOP
I will try that!
Asiatic LionOP
like this?
webpack: (config, { dev }) => {
    if (dev) {
      config.cache = false;
    }

    return config;
  },
code example?
tried the following, still getting annoying issues like this on Mac only:
@Asiatic Lion is it a remote url? from outside the Next project?
if it is remote, have you configured the next config to allow the remote image connection?