mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: build with sentry
This commit is contained in:
@@ -29,6 +29,7 @@ ENV PUBLIC_GROWTH_ENDPOINT=$PUBLIC_GROWTH_ENDPOINT
|
||||
ENV PUBLIC_CONSOLE_MODE=$PUBLIC_CONSOLE_MODE
|
||||
ENV PUBLIC_STRIPE_KEY=$PUBLIC_STRIPE_KEY
|
||||
ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
|
||||
ENV NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
RUN pnpm run sync && pnpm run build
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
PUBLIC_APPWRITE_ENDPOINT: ${PUBLIC_APPWRITE_ENDPOINT}
|
||||
PUBLIC_GROWTH_ENDPOINT: ${PUBLIC_GROWTH_ENDPOINT}
|
||||
PUBLIC_STRIPE_KEY: ${PUBLIC_STRIPE_KEY}
|
||||
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN}
|
||||
develop:
|
||||
watch:
|
||||
- action: rebuild
|
||||
|
||||
+2
-1
@@ -2,11 +2,12 @@ import * as Sentry from '@sentry/sveltekit';
|
||||
import { AppwriteException } from '@appwrite.io/console';
|
||||
import type { HandleClientError } from '@sveltejs/kit';
|
||||
import { isCloud, isProd } from '$lib/system';
|
||||
import { SENTRY_AUTH_TOKEN } from '$env/static/private';
|
||||
|
||||
// If you don't want to use Session Replay, remove the `Replay` integration,
|
||||
// `replaysSessionSampleRate` and `replaysOnErrorSampleRate` options.
|
||||
Sentry.init({
|
||||
enabled: isCloud && isProd,
|
||||
enabled: isCloud && isProd && !!SENTRY_AUTH_TOKEN,
|
||||
dsn: 'https://c7ce178bdedd486480317b72f282fd39@o1063647.ingest.us.sentry.io/4504158071422976',
|
||||
tracesSampleRate: 1,
|
||||
replaysSessionSampleRate: 0,
|
||||
|
||||
+2
-1
@@ -2,9 +2,10 @@ import { sequence } from '@sveltejs/kit/hooks';
|
||||
import { handleErrorWithSentry, sentryHandle } from '@sentry/sveltekit';
|
||||
import * as Sentry from '@sentry/sveltekit';
|
||||
import { isCloud, isProd } from '$lib/system';
|
||||
import { SENTRY_AUTH_TOKEN } from '$env/static/private';
|
||||
|
||||
Sentry.init({
|
||||
enabled: isCloud && isProd,
|
||||
enabled: isCloud && isProd && !!SENTRY_AUTH_TOKEN,
|
||||
dsn: 'https://c7ce178bdedd486480317b72f282fd39@o1063647.ingest.us.sentry.io/4504158071422976',
|
||||
tracesSampleRate: 1.0
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user