fix: ignore webpack resolve unpdf for nextjs (#1320)

Co-authored-by: Marcus Schiesser <mail@marcusschiesser.de>
This commit is contained in:
Thuc Pham
2024-10-10 14:22:38 +07:00
committed by GitHub
parent d30bbf799f
commit d265e96420
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
fix: ignore resolving unpdf for nextjs
+1
View File
@@ -37,6 +37,7 @@ export default function withLlamaIndex(config: any) {
webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias,
"@google-cloud/vertexai": false,
unpdf: false,
};
// Following lines will fix issues with onnxruntime-node when using pnpm
// See: https://github.com/vercel/next.js/issues/43433