Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promote Next/feature to production #1497

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "that-us",
"version": "3.16.0",
"version": "3.16.1",
"description": "THAT.us website",
"main": "index.js",
"type": "module",
Expand Down
10 changes: 9 additions & 1 deletion src/_utils/config.public.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ export const securityConfig = () => {

export const logging = {
dsn: 'https://15d4b436dc0a4366a0ac388c65772926@o235190.ingest.sentry.io/5357492',
environment: env.PUBLIC_VERCEL_ENV
environment: env.PUBLIC_VERCEL_ENV,
denyUrls: [
'/cdn-cgi/zaraz/',
'https://js.zi-scripts.com/', // zoom info
/^chrome:\/\//i,
/^https?:\/\/(?:\w+\.)?cloudflareinsights\.com\//,
/^https?:\/\/(?:\w+\.)?gstatic\.com\//,
'bpm:///conversations-embed'
]
};

export const debug = {
Expand Down
4 changes: 3 additions & 1 deletion src/hooks.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { logging } from '$utils/config.public';
// `replaysSessionSampleRate` and `replaysOnErrorSampleRate` options.
Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
tracesSampleRate: 1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [new Sentry.Replay()],
environment: logging.environment
environment: logging.environment,
denyUrls: logging.denyUrls
});

export const handleError = Sentry.handleErrorWithSentry();
4 changes: 3 additions & 1 deletion src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const { clientSecret, secret } = privateConfig();

Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
environment: logging.environment,
tracesSampleRate: 1
tracesSampleRate: 1,
denyUrls: logging.denyUrls
});

const loginRedirectPaths = [
Expand Down