Skip to content

Commit

Permalink
Merge pull request #130 from ArnasDickus/#129
Browse files Browse the repository at this point in the history
#129 removed Sentry
  • Loading branch information
ArnasDickus authored Aug 27, 2024
2 parents b4bac48 + e5bcf37 commit 4f45694
Show file tree
Hide file tree
Showing 8 changed files with 14 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
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);
console.error('GLOBAL Error', error);
}, [error]);

return (
Expand Down
Loading

0 comments on commit 4f45694

Please sign in to comment.