diff --git a/packages/nocodb/docker/webpack.config.js b/packages/nocodb/docker/webpack.config.js index 9513b6e73a..87675b32be 100644 --- a/packages/nocodb/docker/webpack.config.js +++ b/packages/nocodb/docker/webpack.config.js @@ -56,4 +56,7 @@ module.exports = { // }) ], target: 'node', -}; \ No newline at end of file + node: { + __dirname: false, + }, +}; diff --git a/packages/nocodb/webpack.config.js b/packages/nocodb/webpack.config.js index 9c189cc430..c5c927d79f 100644 --- a/packages/nocodb/webpack.config.js +++ b/packages/nocodb/webpack.config.js @@ -40,7 +40,8 @@ module.exports = { globalObject: "typeof self !== 'undefined' ? self : this" }, node: { - fs: 'empty' + fs: 'empty', + __dirname: false, }, plugins: [ new webpack.EnvironmentPlugin([ @@ -58,5 +59,5 @@ module.exports = { // }, []), ], - target: 'node', -}; \ No newline at end of file + target: 'node' +};