Skip to content

Commit

Permalink
fix: Added envLoggingUrl in webpack (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: Praful Koppalkar <[email protected]>
  • Loading branch information
vsrivatsa-edinburgh and prafulkoppalkar authored Apr 18, 2024
1 parent bd75c28 commit 88587ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
const sdkEnv = process.env.sdkEnv;
const envSdkUrl = process.env.envSdkUrl;
const envBackendUrl = process.env.envBackendUrl;
const envLoggingUrl = process.env.envLoggingUrl;

//git rev-parse --abbrev-ref HEAD
let repoVersion = require("./package.json").version;
Expand Down Expand Up @@ -62,10 +63,15 @@ if (envBackendUrl === undefined) {
confirmEndPoint = envBackendUrl;
}

let logEndpoint =
sdkEnv === "prod"
? "https://api.hyperswitch.io/logs/sdk"
: "https://sandbox.hyperswitch.io/logs/sdk";
let logEndpoint;
if (envLoggingUrl === undefined) {
logEndpoint =
sdkEnv === "prod"
? "https://api.hyperswitch.io/logs/sdk"
: "https://sandbox.hyperswitch.io/logs/sdk";
} else {
logEndpoint = envLoggingUrl;
}

// Set this to true to enable logging
let enableLogging = true;
Expand Down
1 change: 1 addition & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let backendEndPoint =
let devServer = {
contentBase: path.join(__dirname, "dist"),
hot: true,
host: "0.0.0.0",
port: 9050,
historyApiFallback: true,
proxy: {
Expand Down

0 comments on commit 88587ac

Please sign in to comment.