Add Sentry redux integration
This commit is contained in:
parent
4c79640850
commit
098e3f3ce5
@ -1,14 +1,18 @@
|
||||
import LogRocket from "logrocket"
|
||||
import * as Sentry from "@sentry/react";
|
||||
import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit"
|
||||
|
||||
import pluginsReducer from "../slices/plugins"
|
||||
import pluginsTxtReducer from "../slices/pluginsTxt"
|
||||
import modListFiltersReducer from "../slices/modListFilters"
|
||||
|
||||
const sentryReduxEnhancer = Sentry.createReduxEnhancer();
|
||||
|
||||
export function makeStore() {
|
||||
return configureStore({
|
||||
reducer: { pluginsTxt: pluginsTxtReducer, plugins: pluginsReducer, modListFilters: modListFiltersReducer },
|
||||
middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }).concat(LogRocket.reduxMiddleware()),
|
||||
enhancers: [sentryReduxEnhancer],
|
||||
})
|
||||
}
|
||||
|
||||
|
1
package-lock.json
generated
1
package-lock.json
generated
@ -8,6 +8,7 @@
|
||||
"dependencies": {
|
||||
"@reduxjs/toolkit": "^1.8.5",
|
||||
"@sentry/nextjs": "^7.11.1",
|
||||
"@sentry/react": "^7.11.1",
|
||||
"@types/javascript-color-gradient": "^1.3.0",
|
||||
"@types/mapbox-gl": "^2.6.0",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"dependencies": {
|
||||
"@reduxjs/toolkit": "^1.8.5",
|
||||
"@sentry/nextjs": "^7.11.1",
|
||||
"@sentry/react": "^7.11.1",
|
||||
"@types/javascript-color-gradient": "^1.3.0",
|
||||
"@types/mapbox-gl": "^2.6.0",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
|
Loading…
Reference in New Issue
Block a user