Skip to content

Commit

Permalink
chore: add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshPatel5940 committed Feb 10, 2024
1 parent 7cf2ec9 commit 0cda94f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CustomLogger implements LoggerService {
async function bootstrap() {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
environment: process.env.NODE_ENV || 'development',
tracesSampleRate: Number(process.env.SENTRY_TRACES_SAMPLE_RATE) || 1.0,
profilesSampleRate: Number(process.env.SENTRY_PROFILES_SAMPLE_RATE) || 1.0,
integrations: [new ProfilingIntegration()],
Expand All @@ -65,6 +65,7 @@ async function bootstrap() {
})
app.use(Sentry.Handlers.requestHandler())
app.use(Sentry.Handlers.tracingHandler())

const globalPrefix = 'api'
app.setGlobalPrefix(globalPrefix)
app.useGlobalPipes(
Expand Down

0 comments on commit 0cda94f

Please sign in to comment.