Skip to content

preview-disable-next-image-optimisation

@fallenbagel fallenbagel tagged this 30 Nov 20:46
Plex import modal sent Plex avatars through `/_next/image`, which loads sharp at runtime. sharp's
prebuilt x64 binaries require x86-64-v2, so on older CPUs the server dies with SIGILL as soon as the
modal renders. This disables the optimizer globally so sharp never loads, remove sharp from
dependencies, and ignore it as Next's optional dependency, and drop the now unused remotePatterns.
Assets 2
Loading