Fix typo in sentry dsn naming

This commit is contained in:
ErickSkrauch 2020-01-14 15:21:38 +03:00
parent 7b85004994
commit 7dc22019a5
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
5 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
SENTRY_CDN=https://<key>@sentry.io/<project>
SENTRY_DSN=https://<key>@sentry.io/<project>
CROWDIN_API_KEY=abc
@ -7,4 +7,4 @@ GA_ID=UA-XXXXX-Y
API_HOST=https://dev.account.ely.by
VERSION=dev
ENVIRONMENT=dev
ENVIRONMENT=dev

View File

@ -9,6 +9,6 @@ module.exports = {
environment: env.ENVIRONMENT || env.NODE_ENV,
apiHost: env.API_HOST || 'https://dev.account.ely.by',
ga: env.GA_ID && { id: env.GA_ID },
sentryCdn: env.SENTRY_CDN,
sentryDSN: env.SENTRY_DSN,
crowdinApiKey: env.CROWDIN_API_KEY,
};

View File

@ -21,7 +21,7 @@ const win: { [key: string]: any } = window as any;
history.init();
logger.init({
sentryCdn: (window as any).SENTRY_CDN as string,
sentryDSN: (window as any).SENTRY_DSN as string,
});
const store = storeFactory();

View File

@ -6,9 +6,9 @@ const isTest = process.env.NODE_ENV === 'test';
const isProduction = process.env.NODE_ENV === 'production';
class Logger {
init({ sentryCdn }: { sentryCdn: string }) {
if (sentryCdn) {
Raven.config(sentryCdn, {
init({ sentryDSN }: { sentryDSN: string }) {
if (sentryDSN) {
Raven.config(sentryDSN, {
logger: 'accounts-js-app',
level: 'info',
environment: process.env.APP_ENV,

View File

@ -79,8 +79,8 @@ const webpackConfig = {
plugins: [
new WebpackBar(),
new webpack.DefinePlugin({
'window.SENTRY_CDN': config.sentryCdn
? JSON.stringify(config.sentryCdn)
'window.SENTRY_DSN': config.sentryDSN
? JSON.stringify(config.sentryDSN)
: undefined,
'window.GA_ID':
config.ga && config.ga.id ? JSON.stringify(config.ga.id) : undefined,