Skip to content

Commit

Permalink
add to prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Jun 15, 2022
1 parent 5380947 commit 2bfe96b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ module.exports = {
// https://webpack.js.org/concepts/plugins/
plugins: [
new webpack.DefinePlugin({
// The location of the midas-loop backend service, which the UI needs to communicate with.
// This should be something like "http://your.domain.com:3000/api".
API_ENDPOINT: JSON.stringify("http://localhost:3000/api"),
// The probability under which a label probability provided by an NLP service is viewed as
// "suspicious" by the UI. Suspicious labels are graphically indicated as such in the UI.
SUSPICIOUS_PROBABILITY_THRESHOLD: 0.9,
}),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 2bfe96b

Please sign in to comment.