chore(sentry): remove local sentry and use from env (#159)

* .

* add sentry

* prettier

* up packages

* no edge sentry

* chore: remove local sentry and now use form env

---------

Co-authored-by: Nikita <github@nikiv.dev>
This commit is contained in:
Aslam
2024-09-10 18:24:39 +07:00
committed by GitHub
parent 9e28aa5995
commit 55eb5513f4
4 changed files with 6 additions and 5 deletions

View File

@@ -12,4 +12,7 @@ NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_JAZZ_PEER_URL="wss://"
RONIN_TOKEN=
SENTRY_DSN=
SENTRY_PROJECT=
# IGNORE_BUILD_ERRORS=true

View File

@@ -42,14 +42,12 @@ const webConfig = {
const nextConfig = isTauri ? tauriConfig : webConfig
// console.log(`Using ${isTauri ? "Tauri" : "Web"} config`)
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
org: "learn-anything",
project: "website",
project: process.env.SENTRY_PROJECT,
sentryUrl: "https://sentry.io/",
// Only print logs for uploading source maps in CI

View File

@@ -5,7 +5,7 @@
import * as Sentry from "@sentry/nextjs"
Sentry.init({
dsn: "https://643e210c090ea97f641b7f5fb253f16b@o301266.ingest.us.sentry.io/4507927630118912",
dsn: process.env.SENTRY_DSN,
// Add optional integrations for additional features
integrations: [Sentry.replayIntegration()],

View File

@@ -5,7 +5,7 @@
import * as Sentry from "@sentry/nextjs"
Sentry.init({
dsn: "https://643e210c090ea97f641b7f5fb253f16b@o301266.ingest.us.sentry.io/4507927630118912",
dsn: process.env.SENTRY_DSN,
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,