Skip to content

Commit

Permalink
#129 removed setnry
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnasDickus committed Aug 27, 2024
1 parent e1ecf9c commit 6c4d3e5
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 384 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ yarn-error.log*
next-env.d.ts
.swc

# Sentry Config File
.sentryclirc

# Sentry Config File
.sentryclirc


logs

Expand Down
3 changes: 3 additions & 0 deletions .sentryclirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[auth]
token=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
40 changes: 1 addition & 39 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ const nextConfig = {
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
WEATHER_API_KEY: process.env.WEATHER_API_KEY,
},
sentry: {
tunnelRoute: "/en/monitoring-tunnel",
},

images: {
remotePatterns: [
{
Expand All @@ -46,39 +44,3 @@ const nextConfig = {
};

module.exports = nextConfig;

// Injected content via Sentry wizard below

const { withSentryConfig } = require("@sentry/nextjs");

module.exports = withSentryConfig(
module.exports,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "uabbaltic",
project: "uab-baltic",
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/en/monitoring-tunnel",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
}
);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@hookform/resolvers": "^3.3.2",
"@mui/material": "^5.14.9",
"@reduxjs/toolkit": "^1.9.7",
"@sentry/nextjs": "^7.86.0",
"accept-language": "^3.0.18",
"bcrypt": "^5.1.1",
"chart.js": "^4.4.0",
Expand Down
30 changes: 0 additions & 30 deletions sentry.client.config.ts

This file was deleted.

16 changes: 0 additions & 16 deletions sentry.edge.config.ts

This file was deleted.

15 changes: 0 additions & 15 deletions sentry.server.config.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { useEffect } from "react";
import * as Sentry from "@sentry/nextjs";
import Error from "next/error";

const GlobalError = ({
Expand All @@ -12,7 +11,7 @@ const GlobalError = ({
reset: () => void;
}) => {
useEffect(() => {
Sentry.captureException(error);
//
}, [error]);

return (
Expand Down
Loading

0 comments on commit 6c4d3e5

Please sign in to comment.