fix(13): mark @napi-rs/canvas as serverExternalPackages to prevent Turbopack bundling native .node binding
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
transpilePackages: ['react-pdf', 'pdfjs-dist'],
|
||||
serverExternalPackages: ['@napi-rs/canvas'],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user