Commit c169362b authored by Yechang's avatar Yechang
Browse files

chore(sentry): make dsn public

parent 9322fc9c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ ARG COMMIT_SHORT_SHA=""
ENV PUBLIC_COMMIT_SHORT_SHA $COMMIT_SHORT_SHA

ARG SENTRY_DSN
ENV SENTRY_DSN $SENTRY_DSN
ENV PUBLIC_SENTRY_DSN $SENTRY_DSN

RUN pnpm run build \
    && pnpm prune --production
+2 −2
Original line number Diff line number Diff line
import { dev } from "$app/environment";
import { SENTRY_DSN } from "$env/static/private";
import { PUBLIC_SENTRY_DSN } from "$env/static/public";
import { handleErrorWithSentry, replayIntegration } from "@sentry/sveltekit";
import * as Sentry from '@sentry/sveltekit';

@@ -7,7 +7,7 @@ Sentry.init({
  // disable when dev
  enabled: !dev,

  dsn: SENTRY_DSN,
  dsn: PUBLIC_SENTRY_DSN,
  tracesSampleRate: 1.0,

  // This sets the sample rate to be 10%. You may want this to be 100% while
+2 −2
Original line number Diff line number Diff line
@@ -4,13 +4,13 @@ import { lucia } from '$lib/server/auth';
import { db } from '$lib/server/db';
import { redirect, type Handle } from '@sveltejs/kit';
import { dev } from '$app/environment';
import { SENTRY_DSN } from '$env/static/private';
import { PUBLIC_SENTRY_DSN } from '$env/static/public';

Sentry.init({
	// disable when dev
	enabled: !dev,

	dsn: SENTRY_DSN,
	dsn: PUBLIC_SENTRY_DSN,
	tracesSampleRate: 1,
})

+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@
		RecentSales,
		Search,
		UserNav,
		ClassSwitcher
	} from '$lib/components/dashboard';
	// import DatePickerWithRange from "@/registry/new-york/example/date-picker-with-range.svelte";
</script>