mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-27 01:02:14 +05:30
Fix typo in sentry dsn naming
This commit is contained in:
parent
7b85004994
commit
7dc22019a5
4
.env.tpl
4
.env.tpl
@ -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
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user