rollback sharp version

This commit is contained in:
Alan Daniel committed 2025-10-22 19:38:54 -04:00
1 parent 70eedf5db6
commit 6bd48ccef3
4 files changed
+239 -8

No files matched your search

-5
View File
@@ -49,11 +49,6 @@ const nextConfig = {
},
// Configure Sharp as an external package for server-side rendering
serverExternalPackages: ['sharp'],
webpack: {
externals: {
sharp: 'commonjs sharp',
},
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false })
+1 -1
View File
@@ -57,7 +57,7 @@
"react-markdown": "^10.1.0",
"rehype-highlight": "^7.0.2",
"remark-gfm": "^4.0.1",
"sharp": "~0.34.0",
"sharp": "0.32.6",
"tailwind-merge": "^1.13.2",
"tsx": "^4.19.3",
"typescript": "catalog:"
+2
View File
@@ -106,6 +106,8 @@ export default buildConfig({
},
// Reduce payload init overhead
telemetry: false,
// @ts-expect-error had to rollback sharp verion to 0.32.6
// check https://github.com/payloadcms/payload/issues/14142
sharp,
plugins,
})