Skip to content

Commit

Permalink
fix: update next.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Oct 3, 2024
1 parent 452a914 commit 234f03a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/nextjs/chat-to-website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
serverComponentsExternalPackages: ["sharp", "onnxruntime-node"],
};

export default nextConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"html-to-text": "^9.0.5",
"langchain": "^0.2.0",
"langsmith": "^0.1.41",
"llamaindex": "0.5.24",
"llamaindex": "0.6.2",
"nanoid": "^5.0.7",
"pdf-parse": "^1.1.1",
"unstructured-client": "^0.15.1"
Expand Down
3 changes: 3 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ export default defineConfig([
format: ["cjs", "esm"],
clean: true,
dts: true,
external: ["tiktoken"],
},
{
entry: ["src/nextjs/rsc-server.ts"],
outDir: "dist/nextjs",
format: ["esm"],
dts: true,
external: ["tiktoken"],
},
{
entry: ["src/nextjs/index.ts"],
outDir: "dist/nextjs",
format: ["cjs", "esm"],
dts: true,
external: ["tiktoken"],
},
]);

0 comments on commit 234f03a

Please sign in to comment.