Browse Source

chore(noco): avoid replacing __dirname when taking prod build

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5132/head
Pranav C 2 years ago
parent
commit
4a3f07d484
  1. 3
      packages/nocodb/docker/webpack.config.js
  2. 5
      packages/nocodb/webpack.config.js

3
packages/nocodb/docker/webpack.config.js

@ -56,4 +56,7 @@ module.exports = {
// })
],
target: 'node',
node: {
__dirname: false,
},
};

5
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',
target: 'node'
};
Loading…
Cancel
Save