chore(web): document client fallback rationale in webpack config
Clarify why browser bundles stub Node-only html-to-docx dependencies in Next.js.
This commit is contained in:
parent
b2c946b08d
commit
1651b95886
@ -21,6 +21,7 @@ const nextConfig: NextConfig = {
|
||||
|
||||
webpack: (config, { dev, isServer }) => {
|
||||
if (!isServer) {
|
||||
// html-to-docx references Node-only modules that should not be resolved in browser bundles.
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
fs: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user