Removed Sentry int
This commit is contained in:
parent
734c1c1540
commit
0ab2617587
|
@ -1,17 +1,7 @@
|
|||
const { withSentryConfig } = require('@sentry/nextjs');
|
||||
|
||||
const moduleExports = {
|
||||
reactStrictMode: true,
|
||||
compiler: {
|
||||
// ssr and displayName are configured by default
|
||||
styledComponents: true,
|
||||
},
|
||||
};
|
||||
|
||||
const sentryWebpackPluginOptions = {
|
||||
silent: true, // Suppresses all logs
|
||||
};
|
||||
|
||||
// Make sure adding Sentry options is the last code to run before exporting, to
|
||||
// ensure that your source maps include changes from all other Webpack plugins
|
||||
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions);
|
||||
module.exports = moduleExports;
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
"@mui/icons-material": "^5.3.0",
|
||||
"@mui/material": "^5.3.0",
|
||||
"@pdftron/webviewer": "^8.3.3",
|
||||
"@sentry/nextjs": "^6.19.7",
|
||||
"axios": "^0.26.1",
|
||||
"core-js": "^3.21.1",
|
||||
"cursor-react": "^1.0.3",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import axios from "axios";
|
||||
import { withSentry } from '@sentry/nextjs';
|
||||
|
||||
const handler = async (req, res) => {
|
||||
res.status(200).json({ name: "John Doe" });
|
||||
}
|
||||
|
||||
export default withSentry(handler);
|
||||
export default handler;
|
|
@ -1,17 +0,0 @@
|
|||
// This file configures the initialization of Sentry on the browser.
|
||||
// The config you add here will be used whenever a page is visited.
|
||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
||||
|
||||
import * as Sentry from '@sentry/nextjs';
|
||||
|
||||
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
|
||||
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
// Adjust this value in production, or use tracesSampler for greater control
|
||||
tracesSampleRate: 1.0,
|
||||
// ...
|
||||
// Note: if you want to override the automatic release value, do not set a
|
||||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
||||
// that it will also get attached to your source maps
|
||||
});
|
|
@ -1,4 +0,0 @@
|
|||
defaults.url=https://sentry.io/
|
||||
defaults.org=dftechsdevcenter
|
||||
defaults.project=bravo68web-portfolio
|
||||
cli.executable=C:\\Users\\jbany\\AppData\\Local\\npm-cache\\_npx\\a8388072043b4cbc\\node_modules\\@sentry\\cli\\bin\\sentry-cli
|
|
@ -1,17 +0,0 @@
|
|||
// This file configures the initialization of Sentry on the server.
|
||||
// The config you add here will be used whenever the server handles a request.
|
||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
||||
|
||||
import * as Sentry from '@sentry/nextjs';
|
||||
|
||||
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
|
||||
|
||||
Sentry.init({
|
||||
dsn: SENTRY_DSN,
|
||||
// Adjust this value in production, or use tracesSampler for greater control
|
||||
tracesSampleRate: 1.0,
|
||||
// ...
|
||||
// Note: if you want to override the automatic release value, do not set a
|
||||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
||||
// that it will also get attached to your source maps
|
||||
});
|
Loading…
Reference in New Issue