Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Go back to using a .properties

Manav Rathidc6865910499
diff --git a/apps/photos/.sentryclirc b/apps/photos/.sentryclirc
deleted file mode 100644
index 16a107b0a9..0000000000
--- a/apps/photos/.sentryclirc
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file is used by sentry-cli and the SentryWebPack plugin to upload
-# sourcemaps. In addition to the configuration specified here, Sentry expects an
-# environment variable named SENTRY_AUTH_TOKEN.
-[defaults]
-url=https://sentry.ente.io/
-org=ente
-project=photos-web
diff --git a/apps/photos/sentry.properties b/apps/photos/sentry.properties
new file mode 100644
index 0000000000..ff16592419
--- /dev/null
+++ b/apps/photos/sentry.properties
@@ -0,0 +1,8 @@
+# This file is used by the SentryWebpackPlugin to upload sourcemaps.
+#
+# In addition to the configuration specified here, Sentry expects an environment
+# variable named SENTRY_AUTH_TOKEN.
+
+defaults.url = https://sentry.ente.io/
+defaults.org = ente
+defaults.project = photos-web
diff --git a/packages/shared/next/next.config.base.js b/packages/shared/next/next.config.base.js
index 2d98674cf6..69ede58e11 100644
--- a/packages/shared/next/next.config.base.js
+++ b/packages/shared/next/next.config.base.js
@@ -1,11 +1,4 @@
const { withSentryConfig } = require('@sentry/nextjs');
-const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
-const cp = require('child_process');
-
-const gitSHA = cp.execSync('git rev-parse --short HEAD', {
- cwd: __dirname,
- encoding: 'utf8',
-});
const nextConfig = {
compiler: {
@@ -44,10 +37,10 @@ const nextConfig = {
};
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
-const createSentryWebpackPluginOptions = (phase) => {
+const createSentryWebpackPluginOptions = () => {
return {
- dryRun: phase === PHASE_DEVELOPMENT_SERVER,
- release: gitSHA,
+ // dryRun: phase === PHASE_DEVELOPMENT_SERVER,
+ // release: gitSHA,
};
};