Go back to using a .properties

This commit is contained in:
Manav Rathi 2024-02-10 22:21:03 +05:30
parent e8dfbdd581
commit dc68659104
3 changed files with 11 additions and 17 deletions

View file

@ -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

View file

@ -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

View file

@ -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,
};
};