Skip to content

Commit

Permalink
nit #11567
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Oct 23, 2024
1 parent dae3bff commit 5d3ddf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion arches/install/arches-templates/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
}),
Expand Down
5 changes: 4 additions & 1 deletion webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
}),
Expand Down

0 comments on commit 5d3ddf0

Please sign in to comment.