Skip to content

Commit

Permalink
Add optional dependency for sharp
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Jan 18, 2025
1 parent d2582d3 commit 1f1c0c1
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 137 deletions.
5 changes: 1 addition & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const nextConfig = {

// Indicate that these packages should not be bundled by webpack
experimental: {
serverComponentsExternalPackages: [
// "sharp",
"onnxruntime-node",
],
serverComponentsExternalPackages: ["sharp", "onnxruntime-node"],
},

// // https://nextjs.org/docs/app/api-reference/next-config-js/serverExternalPackages
Expand Down
Loading

0 comments on commit 1f1c0c1

Please sign in to comment.