Skip to content

Commit

Permalink
HACK: debug env
Browse files Browse the repository at this point in the history
  • Loading branch information
mplewis committed Nov 19, 2024
1 parent 0f9e039 commit d9927f9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
50 changes: 25 additions & 25 deletions redwood.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@
# https://redwoodjs.com/docs/app-configuration-redwood-toml

[web]
title = "Freevite"
port = 8910
apiUrl = "${API_URL:/.netlify/functions}"
includeEnvironmentVariables = [
'SITE_HOST',
title = "Freevite"
port = 8910
apiUrl = "${API_URL:/.netlify/functions}"
includeEnvironmentVariables = [
'SITE_HOST',

'SENTRY_DSN',
'SENTRY_DSN',

# Netlify: https://docs.netlify.com/configure-builds/environment-variables
'CONTEXT',
'DEPLOY_PRIME_URL',
# Netlify: https://docs.netlify.com/configure-builds/environment-variables
'CONTEXT',
'DEPLOY_PRIME_URL',

# Email
'FROM_EMAIL',
'SMTP_HOST',
'SMTP_PORT',
'SMTP_USER',
'SMTP_PASS',
# Email
'FROM_EMAIL',
'SMTP_HOST',
'SMTP_PORT',
'SMTP_USER',
'SMTP_PASS',

# S3
'S3_REGION',
'S3_BUCKET',
'S3_NAMESPACE',
'S3_USER',
'S3_PASS',
]
# S3
'S3_REGION',
'S3_BUCKET',
'S3_NAMESPACE',
'S3_USER',
'S3_PASS',
]
[api]
port = 8911
port = 8911
[browser]
open = true
open = true
[notifications]
versionUpdates = ["latest"]
versionUpdates = ["latest"]
2 changes: 2 additions & 0 deletions web/src/lib/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as Sentry from '@sentry/react'
let dsn = ''
let environment = 'development'

console.log({ env: process.env })

if (typeof process === 'undefined' || !process.env?.SENTRY_DSN) {
console.error(
'Missing SENTRY_DSN environment variable. Did you forget to add it to ' +
Expand Down

0 comments on commit d9927f9

Please sign in to comment.