Declare jimp as external server package

This commit is contained in:
Sam Becker 2024-05-03 18:19:43 -05:00
parent 0f7299d891
commit 0666e5311c
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,9 @@ const nextConfig = {
.concat(createRemotePattern(HOSTNAME_AWS_S3)),
minimumCacheTTL: 31536000,
},
experimental: {
serverComponentsExternalPackages: ['jimp'],
},
};
const withBundleAnalyzer = require('@next/bundle-analyzer')({

View File

@ -264,7 +264,7 @@ export default function PhotoForm({
url,
640,
undefined,
window.location.origin,
typeof window !== 'undefined' ? window.location.origin : undefined,
)}
width={width}
height={height}