mirror of https://github.com/kortix-ai/suna.git
wip
This commit is contained in:
parent
71dece211a
commit
472446c902
|
@ -1,7 +1,18 @@
|
||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
|
webpack: (config) => {
|
||||||
|
// This rule prevents issues with pdf.js and canvas
|
||||||
|
config.externals = [...(config.externals || []), { canvas: "canvas" }];
|
||||||
|
|
||||||
|
// Ensure node native modules are ignored
|
||||||
|
config.resolve.fallback = {
|
||||||
|
...config.resolve.fallback,
|
||||||
|
canvas: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
return config;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|
Loading…
Reference in New Issue