From 5d3ddf0beba4953409346b34fc5d5d2a89428597 Mon Sep 17 00:00:00 2001 From: Christopher Byrd Date: Wed, 23 Oct 2024 14:11:30 -0700 Subject: [PATCH] nit #11567 --- arches/install/arches-templates/webpack/webpack.common.js | 5 ++++- webpack/webpack.common.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arches/install/arches-templates/webpack/webpack.common.js b/arches/install/arches-templates/webpack/webpack.common.js index fa4a5e6959..79886fcbc2 100644 --- a/arches/install/arches-templates/webpack/webpack.common.js +++ b/arches/install/arches-templates/webpack/webpack.common.js @@ -281,7 +281,10 @@ module.exports = () => { new webpack.DefinePlugin(universalConstants), new webpack.DefinePlugin({ ARCHES_URLS: webpack.DefinePlugin.runtimeValue( - () => fs.readFileSync(Path.resolve(__dirname, APP_ROOT, '..', 'frontend_configuration', 'urls.json'), 'utf-8'), + () => fs.readFileSync( + Path.resolve(__dirname, PROJECT_RELATIVE_NODE_MODULES_PATH, '..', 'frontend_configuration', 'urls.json'), + 'utf-8' + ), true // should be re-evaluated on rebuild ), }), diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index fa4a5e6959..79886fcbc2 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -281,7 +281,10 @@ module.exports = () => { new webpack.DefinePlugin(universalConstants), new webpack.DefinePlugin({ ARCHES_URLS: webpack.DefinePlugin.runtimeValue( - () => fs.readFileSync(Path.resolve(__dirname, APP_ROOT, '..', 'frontend_configuration', 'urls.json'), 'utf-8'), + () => fs.readFileSync( + Path.resolve(__dirname, PROJECT_RELATIVE_NODE_MODULES_PATH, '..', 'frontend_configuration', 'urls.json'), + 'utf-8' + ), true // should be re-evaluated on rebuild ), }),