Declare jimp as external server package
This commit is contained in:
parent
0f7299d891
commit
0666e5311c
@ -35,6 +35,9 @@ const nextConfig = {
|
||||
.concat(createRemotePattern(HOSTNAME_AWS_S3)),
|
||||
minimumCacheTTL: 31536000,
|
||||
},
|
||||
experimental: {
|
||||
serverComponentsExternalPackages: ['jimp'],
|
||||
},
|
||||
};
|
||||
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user