use env var for sentry

This commit is contained in:
Luc Succes 2022-03-31 09:33:13 -07:00
parent 82c348c1da
commit ee446b2de5
1 changed files with 8 additions and 4 deletions

View File

@ -30,10 +30,6 @@ import useTradeHistory from '../hooks/useTradeHistory'
import * as Sentry from '@sentry/react'
import { BrowserTracing } from '@sentry/tracing'
Sentry.init({
dsn: 'https://657354c743f24ac686c979e77d9759d9@o1177229.ingest.sentry.io/6276097',
integrations: [new BrowserTracing()],
})
import { WalletProvider, WalletListener } from 'components/WalletAdapter'
import { PhantomWalletAdapter } from '@solana/wallet-adapter-phantom'
import { SolflareWalletAdapter } from '@solana/wallet-adapter-solflare'
@ -43,6 +39,14 @@ import { BitpieWalletAdapter } from '@solana/wallet-adapter-bitpie'
import { HuobiWalletAdapter } from '@solana/wallet-adapter-huobi'
import { GlowWalletAdapter } from '@solana/wallet-adapter-glow'
const SENTRY_URL = process.env.NEXT_PUBLIC_SENTRY_URL
if (SENTRY_URL) {
Sentry.init({
dsn: SENTRY_URL,
integrations: [new BrowserTracing()],
})
}
const MangoStoreUpdater = () => {
useHydrateStore()
return null