forked from dis-moi/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate SENTRY_ENABLED and SENTRY_SEND_VERSION
We want to be able to generate a build with Sentry integrated and enabled without uploading the version to the Sentry platform. `SENTRY_ORG`, `SENTRY_PROJECT`, `SENTRY_DSN` and `SENTRY_ENABLED` are now committed in staging and production .env file because they are no secret, and we know the values we want to use depending on the environment. New var `SENTRY_SEND_VERSION` is not defined in any .env file but forced by npm script when using `buildVersion` instead of `build` script, thus triggering the upload of the built version to Sentry service. Such operation does need a .sentryclirc file with the user `token` to complete.
- Loading branch information
1 parent
f2be7a8
commit 24bb2ca
Showing
9 changed files
with
48 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ [email protected] | |
[email protected] | ||
SEND_IN_BLUE_TOKEN=token | ||
|
||
#SENTRY_ENABLED=true | ||
#CHROME_EXTENSION_ID= | ||
|
||
# For tooling and profiles page | ||
|
@@ -25,3 +24,8 @@ FIREFOX_EXTENSION_ID= | |
PROFILES_ORIGIN=http://localhost:8080 | ||
PROFILES_ASSETS_PATH=/ | ||
POPULAR_CONTRIBUTORS_IDS=[1, 2, 3] | ||
|
||
# Sentry | ||
SENTRY_ORG=lmem | ||
SENTRY_PROJECT=web-extension | ||
SENTRY_DSN=https://[email protected]/1404847 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ FIREFOX_API_SECRET= | |
CHROME_CLIENT_ID= | ||
CHROME_CLIENT_SECRET= | ||
CHROME_REFRESH_TOKEN= | ||
SENTRY_DSN= | ||
SEND_IN_BLUE_TOKEN= | ||
|
||
# For tooling and profiles page | ||
|
@@ -13,3 +12,8 @@ FIREFOX_EXTENSION_ID= | |
PROFILES_ORIGIN= | ||
PROFILES_ASSETS_PATH= | ||
POPULAR_CONTRIBUTORS_IDS=[] | ||
|
||
# Sentry | ||
SENTRY_ORG=lmem | ||
SENTRY_PROJECT=web-extension | ||
SENTRY_DSN=https://[email protected]/1404847 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
BABEL_ENV=production | ||
|
||
BACKEND_ORIGIN=https://notices.bulles.fr/api/v3/ | ||
|
||
# Refresh intervals in minutes | ||
|
@@ -16,7 +18,12 @@ [email protected] | |
|
||
CHROME_EXTENSION_ID=mepoelfgpameiagpkgpjphnbgampgffm | ||
FIREFOX_EXTENSION_ID={72aad822-62f5-4663-a8f0-025b2f9a3dd5} | ||
BABEL_ENV=production | ||
PROFILES_ORIGIN=https://proding-profiles.dismoi.io | ||
PROFILES_ASSETS_PATH=https://proding-profiles.dismoi.io/ | ||
POPULAR_CONTRIBUTORS_IDS=[53, 54, 59, 46, 65] | ||
|
||
# Sentry | ||
SENTRY_ORG=lmem | ||
SENTRY_PROJECT=web-extension | ||
SENTRY_DSN=https://[email protected]/1404847 | ||
SENTRY_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
BABEL_ENV=production | ||
|
||
BACKEND_ORIGIN=https://notices.bulles.fr/api/v3/ | ||
|
||
# Refresh intervals in minutes | ||
|
@@ -19,3 +21,9 @@ FIREFOX_EXTENSION_ID=@lmem | |
PROFILES_ORIGIN=https://www.dismoi.io | ||
PROFILES_ASSETS_PATH=https://profiles.dismoi.io/ | ||
POPULAR_CONTRIBUTORS_IDS=[53, 54, 59, 46, 65] | ||
|
||
# Sentry | ||
SENTRY_ORG=lmem | ||
SENTRY_PROJECT=web-extension | ||
SENTRY_DSN=https://[email protected]/1404847 | ||
SENTRY_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
BABEL_ENV=production | ||
|
||
BACKEND_ORIGIN=https://staging-notices.bulles.fr/api/v3/ | ||
|
||
# Refresh intervals in minutes | ||
|
@@ -16,7 +18,12 @@ [email protected] | |
|
||
CHROME_EXTENSION_ID=nfabbfkbbbcebdmnocndhdombaffkaog | ||
FIREFOX_EXTENSION_ID={7d0d2553-c311-4acd-a170-f9a4714eb2c0} | ||
BABEL_ENV=production | ||
PROFILES_ORIGIN=https://staging-profiles.dismoi.io | ||
PROFILES_ASSETS_PATH=https://staging-profiles.dismoi.io/ | ||
POPULAR_CONTRIBUTORS_IDS=[53, 54, 59, 46, 65] | ||
|
||
# Sentry | ||
SENTRY_ORG=lmem | ||
SENTRY_PROJECT=web-extension | ||
SENTRY_DSN=https://[email protected]/1404847 | ||
SENTRY_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters