From 4a3f07d4842bf613252bd031fa5871d5f04e5673 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 17 Feb 2023 11:59:49 +0530 Subject: [PATCH] chore(noco): avoid replacing __dirname when taking prod build Signed-off-by: Pranav C --- packages/nocodb/docker/webpack.config.js | 5 ++++- packages/nocodb/webpack.config.js | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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' +};