Skip to content
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
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ FIREBASE_PRIVATE_KEY=
GEMINI_API_KEY=
GEMINI_MODEL=gemini-2.5-flash
GEMINI_EMBEDDING_MODEL=gemini-embedding-001

# Upstash Redis (API Rate Limiting - Server-only)
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

# PostHog Telemetry (Client-side)
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com

# Sentry Monitoring (Client/Server)
NEXT_PUBLIC_SENTRY_DSN=
40 changes: 39 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Injected content via Sentry Wizard
const { withSentryConfig } = require("@sentry/nextjs");

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
Expand All @@ -24,5 +27,40 @@ const nextConfig = {
},
}

module.exports = nextConfig
module.exports = withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during bundling
silent: true,
org: "dumpit",
project: "dumpit",
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientSandbox: true,

// Transpiles SDK to be compatible with a wider range of browsers
transpileClientSDK: true,

// Routes Sentry events through our own developer tunnel to circumvent ad blockers
tunnelRoute: "/monitoring",

// Hides source maps from visitors
hideSourceMaps: true,

// Automatically tree-shakes Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the readme for more information to avoid race conditions:
// https://github.com/getsentry/sentry-javascript/public-sharing-ui/tree/main/packages/nextjs#vercel-cron-monitors-support
automaticVercelMonitors: true,
}
);

Loading
Loading