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 3c8b9ce
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 126 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 3c8b9ce

Please sign in to comment.