Skip to content

Commit

Permalink
revert(webpack): reverting back the CDN changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay committed Apr 29, 2024
1 parent 3967bd8 commit 1df705f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ let backendEndPoint;
if (envBackendUrl === undefined) {
backendEndPoint =
sdkEnv === "prod"
? "https://checkout.hyperswitch.io/api"
? "https://api.hyperswitch.io"
: sdkEnv === "sandbox"
? "https://beta.hyperswitch.io/api"
? "https://sandbox.hyperswitch.io"
: sdkEnv === "integ"
? "https://integ-api.hyperswitch.io"
: "https://beta.hyperswitch.io/api";
: "https://sandbox.hyperswitch.io";
} else {
backendEndPoint = envBackendUrl;
}
Expand All @@ -53,12 +53,12 @@ let confirmEndPoint;
if (envBackendUrl === undefined) {
confirmEndPoint =
sdkEnv === "prod"
? "https://checkout.hyperswitch.io/api"
? "https://api.hyperswitch.io"
: sdkEnv === "sandbox"
? "https://beta.hyperswitch.io/api"
? "https://sandbox.hyperswitch.io"
: sdkEnv === "integ"
? "https://integ-api.hyperswitch.io"
: "https://beta.hyperswitch.io/api";
: "https://sandbox.hyperswitch.io";
} else {
confirmEndPoint = envBackendUrl;
}
Expand Down
8 changes: 4 additions & 4 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const sdkEnv = process.env.sdkEnv;

let backendEndPoint =
sdkEnv === "prod"
? "https://checkout.hyperswitch.io/api/payments"
? "https://api.hyperswitch.io/payments"
: sdkEnv === "sandbox"
? "https://beta.hyperswitch.io/api/payments"
? "https://sandbox.hyperswitch.io/payments"
: sdkEnv === "integ"
? "https://integ-api.hyperswitch.io/payments"
: "https://beta.hyperswitch.io/api/payments";
: "https://sandbox.hyperswitch.io/payments";

let devServer = {
contentBase: path.join(__dirname, "dist"),
Expand All @@ -20,7 +20,7 @@ let devServer = {
port: 9050,
historyApiFallback: true,
proxy: {
"/api/payments": {
"/payments": {
target: backendEndPoint,
changeOrigin: true,
secure: true,
Expand Down

0 comments on commit 1df705f

Please sign in to comment.