mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
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:
@@ -12,4 +12,7 @@ NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
|
|||||||
NEXT_PUBLIC_JAZZ_PEER_URL="wss://"
|
NEXT_PUBLIC_JAZZ_PEER_URL="wss://"
|
||||||
|
|
||||||
RONIN_TOKEN=
|
RONIN_TOKEN=
|
||||||
|
|
||||||
|
SENTRY_DSN=
|
||||||
|
SENTRY_PROJECT=
|
||||||
# IGNORE_BUILD_ERRORS=true
|
# IGNORE_BUILD_ERRORS=true
|
||||||
@@ -42,14 +42,12 @@ const webConfig = {
|
|||||||
|
|
||||||
const nextConfig = isTauri ? tauriConfig : webConfig
|
const nextConfig = isTauri ? tauriConfig : webConfig
|
||||||
|
|
||||||
// console.log(`Using ${isTauri ? "Tauri" : "Web"} config`)
|
|
||||||
|
|
||||||
export default withSentryConfig(nextConfig, {
|
export default withSentryConfig(nextConfig, {
|
||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://github.com/getsentry/sentry-webpack-plugin#options
|
// https://github.com/getsentry/sentry-webpack-plugin#options
|
||||||
|
|
||||||
org: "learn-anything",
|
org: "learn-anything",
|
||||||
project: "website",
|
project: process.env.SENTRY_PROJECT,
|
||||||
sentryUrl: "https://sentry.io/",
|
sentryUrl: "https://sentry.io/",
|
||||||
|
|
||||||
// Only print logs for uploading source maps in CI
|
// Only print logs for uploading source maps in CI
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as Sentry from "@sentry/nextjs"
|
import * as Sentry from "@sentry/nextjs"
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://643e210c090ea97f641b7f5fb253f16b@o301266.ingest.us.sentry.io/4507927630118912",
|
dsn: process.env.SENTRY_DSN,
|
||||||
|
|
||||||
// Add optional integrations for additional features
|
// Add optional integrations for additional features
|
||||||
integrations: [Sentry.replayIntegration()],
|
integrations: [Sentry.replayIntegration()],
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as Sentry from "@sentry/nextjs"
|
import * as Sentry from "@sentry/nextjs"
|
||||||
|
|
||||||
Sentry.init({
|
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.
|
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||||
tracesSampleRate: 1,
|
tracesSampleRate: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user