Add NEXT_PUBLIC_SENTRY_DSN
parent
03d66ea1b3
commit
9294150029
|
@ -4,7 +4,7 @@ import type { Handler } from 'https://raw.githubusercontent.com/honojs/hono/v2.0
|
||||||
export const sentry = (): Handler => {
|
export const sentry = (): Handler => {
|
||||||
return async (c, next) => {
|
return async (c, next) => {
|
||||||
// const sentry = new Toucan({
|
// const sentry = new Toucan({
|
||||||
// dsn: c.env.SENTRY_DSN,
|
// dsn: c.env.SENTRY_DSN || || c.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||||
// request: c.req,
|
// request: c.req,
|
||||||
// allowedHeaders: ['user-agent'],
|
// allowedHeaders: ['user-agent'],
|
||||||
// allowedSearchParams: /(.*)/,
|
// allowedSearchParams: /(.*)/,
|
||||||
|
|
|
@ -4,7 +4,7 @@ import Toucan from 'toucan-js'
|
||||||
export const sentry = (): Handler => {
|
export const sentry = (): Handler => {
|
||||||
return async (c, next) => {
|
return async (c, next) => {
|
||||||
const sentry = new Toucan({
|
const sentry = new Toucan({
|
||||||
dsn: c.env.SENTRY_DSN,
|
dsn: c.env.SENTRY_DSN || c.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||||
request: c.req,
|
request: c.req,
|
||||||
allowedHeaders: ['user-agent'],
|
allowedHeaders: ['user-agent'],
|
||||||
allowedSearchParams: /(.*)/,
|
allowedSearchParams: /(.*)/,
|
||||||
|
|
Loading…
Reference in New Issue