mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-09 05:15:02 +00:00
* WIP Place des entreprises * Fix Emoji waning * WIP Place des entreprises * Ajout de PdE dans les CSP directive * Ajout de l'option small sur la popover * Style de l'iframe place des entreprises * ⬆ Update react-aria button, dialog and overlays * Amélioration du composant PlaceDesEntreprises * Empêche l'event "click" apres un event "touch" sur mobile (fix #2020) * Clean commentaire * Fix des erreurs de dom * Ajout des fonctions isProduction, isStaging et isDevelopment * Ajout des url de staging place des entreprises * Refacto du texte * Ajout des traduction * Ajout du staging de PdE dans le cors * Modification du lien storybook EN * Ajout de dépréciation sur les var d'env MODE, DEV et PROD * Ajout du siret pour PdE dans Gérer * Ajout d'un scrollToTop sur l'onLoad de l'iframe * Fix css de la popover sur mobile * Fix css des bar de pourcentage sur tablet
28 lines
826 B
TypeScript
28 lines
826 B
TypeScript
import * as Sentry from '@sentry/react'
|
||
import { Integrations } from '@sentry/tracing'
|
||
import { getBranch, isProduction, isStaging } from './utils'
|
||
|
||
const branch = getBranch()
|
||
|
||
if (branch && isStaging()) {
|
||
// eslint-disable-next-line no-console
|
||
console.info(
|
||
`ℹ Vous êtes sur la branche : %c${branch}`,
|
||
'font-weight: bold; text-decoration: underline;'
|
||
)
|
||
}
|
||
|
||
const release =
|
||
branch && `${branch}-` + import.meta.env.VITE_GITHUB_SHA?.substring(0, 7)
|
||
|
||
if (isProduction()) {
|
||
Sentry.init({
|
||
dsn: 'https://92bbc21937b24136a2fe1b1d922b000f@o548798.ingest.sentry.io/5745615',
|
||
integrations: [new Integrations.BrowserTracing()],
|
||
release,
|
||
// Set tracesSampleRate to 1.0 to capture 100%
|
||
// of transactions for performance monitoring.
|
||
// We recommend adjusting this value in production
|
||
tracesSampleRate: 0.5,
|
||
})
|
||
}
|