-
Notifications
You must be signed in to change notification settings - Fork 36
/
index.coffee
52 lines (45 loc) · 1.53 KB
/
index.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import * as Sentry from "@sentry/react"
Sentry.init
dsn: "https://[email protected]/4507892583694336"
integrations: [
Sentry.browserTracingIntegration()
Sentry.replayIntegration()
]
# Tracing
tracesSampleRate: 1.0 # Capture 100% of the transactions
# Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/torontojs\.com/]
# Session Replay
replaysSessionSampleRate: 0.1 # This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0 # If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
import React from 'react'
import { render } from 'react-dom'
import {
BrowserRouter
Routes
Route
} from "react-router-dom"
import '/styles/index.sass'
import screens from './screens/*/index.coffee'
import pages from './pages/*.md'
import Page from '/components/page'
App = ->
<BrowserRouter>
<Routes>
{for name, {default: Screen} of screens
<Route
key={name}
path={Screen.path or name}
element={<Screen/>}
/>
}
{for name, {default: content} of pages
<Route
key={name}
path={name}
element={<Page content={content}/>}
/>
}
</Routes>
</BrowserRouter>
render <App/>, document.getElementById('app')