File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ env var during runtime:
3030fly secrets set SENTRY_DSN=< your_dsn>
3131```
3232
33- See the guide for the remix
34- [ here] ( https://docs.sentry.io/platforms/javascript/guides/remix/ ) . Run the
35- installation wizard but note that some of the steps included already exist in
36- this codebase so be sure to remove any duplication.
33+ See the guides for React Router v7
34+ [ here(library)] ( https://docs.sentry.io/platforms/javascript/guides/react/features/react-router/v7/ )
35+ and
36+ [ here(framwork)] ( https://docs.sentry.io/platforms/javascript/guides/react-router/ ) .
37+ Note that the dedicated SDK for React Router is under development and features
38+ are lacking.
3739
3840To generate the auth token, click
3941[ this] ( https://sentry.io/orgredirect/settings/:orgslug/developer-settings/new-internal/ )
Original file line number Diff line number Diff line change 11import crypto from 'node:crypto'
22import { createRequestHandler } from '@react-router/express'
3- import * as Sentry from '@sentry/react '
3+ import * as Sentry from '@sentry/node '
44import { ip as ipAddress } from 'address'
55import chalk from 'chalk'
66import closeWithGrace from 'close-with-grace'
@@ -144,7 +144,7 @@ const maxMultiple =
144144 ! IS_PROD || process . env . PLAYWRIGHT_TEST_BASE_URL ? 10_000 : 1
145145const rateLimitDefault = {
146146 windowMs : 60 * 1000 ,
147- limit : 1000 * maxMultiple ,
147+ limit : 1000 * maxMultiple ,
148148 standardHeaders : true ,
149149 legacyHeaders : false ,
150150 validate : { trustProxy : false } ,
@@ -166,7 +166,7 @@ const strongestRateLimit = rateLimit({
166166const strongRateLimit = rateLimit ( {
167167 ...rateLimitDefault ,
168168 windowMs : 60 * 1000 ,
169- limit : 100 * maxMultiple ,
169+ limit : 100 * maxMultiple ,
170170} )
171171
172172const generalRateLimit = rateLimit ( rateLimitDefault )
Original file line number Diff line number Diff line change 1- import { prismaIntegration , httpIntegration } from '@sentry/node'
1+ import * as Sentry from '@sentry/node'
22import { nodeProfilingIntegration } from '@sentry/profiling-node'
3- import * as Sentry from '@sentry/react'
43
54export function init ( ) {
65 Sentry . init ( {
@@ -18,8 +17,8 @@ export function init() {
1817 / \/ s i t e \. w e b m a n i f e s t / ,
1918 ] ,
2019 integrations : [
21- prismaIntegration ( ) ,
22- httpIntegration ( ) ,
20+ Sentry . prismaIntegration ( ) ,
21+ Sentry . httpIntegration ( ) ,
2322 nodeProfilingIntegration ( ) ,
2423 ] ,
2524 tracesSampler ( samplingContext ) {
You can’t perform that action at this time.
0 commit comments