From 4b3c073ca8a6a86eed982aa1ef0047ae36db1cf9 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Thu, 4 Jul 2024 15:59:20 +0530 Subject: [PATCH 1/2] fix: integ api changes --- webpack.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.dev.js b/webpack.dev.js index 2104c3bcf..d5aa63b81 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -8,7 +8,7 @@ const sdkEnv = process.env.sdkEnv ?? "local"; const endpointMap = { prod: "https://api.hyperswitch.io/payments", sandbox: "https://sandbox.hyperswitch.io/payments", - integ: "https://integ-api.hyperswitch.io/payments", + integ: "https://integ.hyperswitch.io/api/payments", local: "https://sandbox.hyperswitch.io/payments", // Default or local environment endpoint }; From 5f29273169920f18f428b23ad7eef29fc85f1f3f Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Thu, 4 Jul 2024 17:07:41 +0530 Subject: [PATCH 2/2] fix: webpack formatting --- webpack.common.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 2b06891e4..46b5a561b 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -95,7 +95,10 @@ module.exports = (publicPath = "auto") => { ); } - if (process.env.SENTRY_AUTH_TOKEN && process.env.IS_SENTRY_ENABLED === "true") { + if ( + process.env.SENTRY_AUTH_TOKEN && + process.env.IS_SENTRY_ENABLED === "true" + ) { plugins.push( sentryWebpackPlugin({ org: "sentry", @@ -127,18 +130,18 @@ module.exports = (publicPath = "auto") => { sdkEnv === "local" ? {} : { - sideEffects: true, - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - compress: { - drop_console: false, + sideEffects: true, + minimize: true, + minimizer: [ + new TerserPlugin({ + terserOptions: { + compress: { + drop_console: false, + }, }, - }, - }), - ], - }, + }), + ], + }, plugins, module: { rules: [