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:
Chandler Copeland
2026-03-21 17:43:16 -06:00
parent e7bf5abb9f
commit 461abb0dc4

View File

@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
transpilePackages: ['react-pdf', 'pdfjs-dist'],
serverExternalPackages: ['@napi-rs/canvas'],
};
export default nextConfig;