summarylogtreecommitdiffstats
path: root/0001-fix-webpack-config.patch
blob: 525b50b1b61aec0bb7d5df93fd9fb43a1fd14292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff --git a/applications/inbox-desktop/webpack.main.config.ts b/WebClients/applications/inbox-desktop/webpack.main.config.ts
index 8c06ac9711..32a314bad2 100644
--- a/applications/inbox-desktop/webpack.main.config.ts
+++ b/applications/inbox-desktop/webpack.main.config.ts
@@ -1,18 +1,5 @@
-import { DefinePlugin, type Configuration } from "webpack";
+import { type Configuration } from "webpack";
 import { rules } from "./webpack.rules";
-import { readFileSync } from "node:fs";
-import { z } from "zod";
-import { resolve } from "node:path";
-
-const AppConfigSchema = z.object({
-    appConfig: z.object({
-        sentryDesktop: z.string(),
-    }),
-});
-
-const APP_CONFIG_PATH = resolve(__dirname, "../../packages/config/mail/appConfig.json");
-const { appConfig } = AppConfigSchema.parse(JSON.parse(readFileSync(APP_CONFIG_PATH, "utf8")));
-const sentryDSN = appConfig.sentryDesktop;
 
 export const mainConfig: Configuration = {
     /**
@@ -30,13 +17,7 @@ export const mainConfig: Configuration = {
             },
         ],
     },
-    plugins: [
-        new DefinePlugin({
-            "process.env.BUILD_TAG": JSON.stringify(process.env.BUILD_TAG),
-            "process.env.IDA_TAG": JSON.stringify(process.env.IDA_TAG),
-            "process.env.DESKTOP_SENTRY_DSN": JSON.stringify(sentryDSN),
-        }),
-    ],
+    plugins: [],
     resolve: {
         extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"],
     },