Skip to content

Commit 731c5eb

Browse files
committed
chore(sentry): remove sentry integration and cleanup
- remove sentry package and related config files (sentry.*, instrumentation*, global-error, sentry example pages and api) - remove sentry env vars from .env.example and .env.sentry-build-plugin ignore entry from .gitignore - remove @sentry/nextjs from package.json and package-lock - simplify next.config.ts to export nextConfig without withSentryConfig - update links and redirects to remove /dashboard prefixes (admin, chat, flex, leaderboards, settings, public leaderboard) - remove sentry references from privacy and terms pages - remove vercel redirects for sentry example
1 parent 3c2563b commit 731c5eb

21 files changed

Lines changed: 183 additions & 3038 deletions

File tree

.env.example

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=
77

88
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=
99

10-
SENTRY_AUTH_TOKEN=
11-
SENTRY_ORG=
12-
SENTRY_PROJECT=
13-
SENTRY_DNS=
14-
1510
NEXT_PUBLIC_NORTON_SAFEWEB_SITE_VERIFICATION=
1611

1712
SUPABASE_ACCESS_TOKEN=

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,3 @@ supabase/*
5454

5555
yarn.lock
5656
pnpm-lock.yaml
57-
58-
# Sentry Config File
59-
.env.sentry-build-plugin

app/(public)/leaderboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default async function Leaderboards() {
8787
return (
8888
<div className="min-h-screen bg-[#0a0a1a] text-white grid-bg relative">
8989
<div className="max-w-5xl mx-auto p-6 md:p-10 relative z-10">
90-
<BackButton href="/dashboard/leaderboards" />
90+
<BackButton href="/leaderboards" />
9191

9292
<div className="flex justify-center items-center gap-3 mb-8">
9393
<Image src="/logo.svg" alt="Devpulse Logo" width={36} height={36} />

app/api/sentry-example-api/route.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/d/admin/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function AdminPage() {
1111
const { user, profile } = await getUserWithProfile();
1212

1313
if (!user) {
14-
redirect("/login?from=/dashboard/admin");
14+
redirect("/login?from=/admin");
1515
}
1616

1717
if (!profile || profile.role !== "admin") {

app/d/chat/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010
export default async function ChatPage() {
1111
const { user } = await getUserWithProfile();
1212

13-
if (!user) return redirect("/login?from=/dashboard/chat");
13+
if (!user) return redirect("/login?from=/chat");
1414

1515
return <Chat user={user} />;
1616
}

app/d/flex/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010
export default async function FlexPage() {
1111
const { user } = await getUserWithProfile();
1212

13-
if (!user) return redirect("/login?from=/dashboard/flex");
13+
if (!user) return redirect("/login?from=/flex");
1414

1515
return <Flex user={user} />;
1616
}

app/d/leaderboards/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010

1111
export default async function LeaderboardsPage() {
1212
const { user } = await getUserWithProfile();
13-
if (!user) return redirect("/login?from=/dashboard/settings");
13+
if (!user) return redirect("/login?from=/settings");
1414

1515
return (
1616
<div className="p-6 md:p-8 space-y-6 max-w-5xl mx-auto">

app/d/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const metadata: Metadata = {
1111

1212
export default async function SettingsPage() {
1313
const { user, profile } = await getUserWithProfile();
14-
if (!user) return redirect("/login?from=/dashboard/settings");
14+
if (!user) return redirect("/login?from=/settings");
1515

1616
const hasWakaKey = Boolean(profile?.wakatime_api_key);
1717
const maskedWakaKey = profile?.wakatime_api_key

app/global-error.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)