From 2bfe96b3cc640585bf017fd02eaccdea22ab500b Mon Sep 17 00:00:00 2001 From: Luke Gessler Date: Wed, 15 Jun 2022 11:50:52 -0400 Subject: [PATCH] add to prod config --- webpack.prod.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.prod.js b/webpack.prod.js index e219716..57f4314 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -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({