Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
chore: update sentry account / project dsns (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
montchr authored Mar 6, 2023
2 parents c5abb4f + 3505f7b commit d2145d1
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Files: */.editorconfig
.gitignore
.gitmodules
.prettierignore
*.properties
.vscode/*
.yarn/*
*.json
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NEXT_PUBLIC_WORDPRESS_CORE_URL="${NEXT_PUBLIC_SERVER_URL}/wp"
NEXT_PUBLIC_GRAPHQL_ENDPOINT="${NEXT_PUBLIC_WORDPRESS_CORE_URL}/graphql"

# Enable Sentry monitoring
NEXT_PUBLIC_SENTRY_DSN=''
NEXT_PUBLIC_SENTRY_DSN='https://c9dfa77fa5434f2a99a71b5296ae5c34@o4504793704300544.ingest.sentry.io/4504793766494208'

##: Post Previews

Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
tracesSampleRate: process.env.NODE_ENV == 'production' ? 0.8 : 1.0,
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
tracesSampleRate: process.env.NODE_ENV == 'production' ? 0.8 : 1.0,
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/sentry.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defaults.url=https://sentry.io/
defaults.org=chris-montgomery
defaults.project=javascript-nextjs
defaults.org=kleinweb
defaults.project=logan-center-nextjs
cli.executable=../../node_modules/@sentry/cli/bin/sentry-cli
2 changes: 0 additions & 2 deletions apps/nextjs/sentry.properties.license

This file was deleted.

2 changes: 1 addition & 1 deletion apps/nextjs/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
tracesSampleRate: process.env.NODE_ENV == 'production' ? 0.8 : 1.0,
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
Expand Down
5 changes: 4 additions & 1 deletion apps/wordpress/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ WP_ENV='development'
WP_HOME='https://logancenter-wp-next.ddev.site'
WP_SITEURL="${WP_HOME}/wp"
NEXT_FRONTEND_URL="http://localhost:3000"
WP_SENTRY_DSN=''

# Required to enable monitoring with Sentry.
# This URL does not need to be kept secret -- in client-side JS, it would be public anyway.
WP_SENTRY_DSN='https://6015afd0733c4c3393549c2771235fb6@o4504793704300544.ingest.sentry.io/4504793716031488'

# Specify optional debug.log path
# WP_DEBUG_LOG='/path/to/debug.log'
Expand Down
4 changes: 4 additions & 0 deletions apps/wordpress/sentry.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
defaults.url=https://sentry.io/
defaults.org=kleinweb
defaults.project=logan-center-wp
cli.executable=../../node_modules/@sentry/cli/bin/sentry-cli

0 comments on commit d2145d1

Please sign in to comment.