Feat: Enable Poshog and Sentry for OSS (#23)

feat: enable posthog and sentry for oss
This commit is contained in:
Abhishek 2025-10-04 12:23:20 +05:30 committed by GitHub
parent 8e2e5c9327
commit 90f7aac8ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 118 additions and 59 deletions

View file

@ -9,9 +9,9 @@ const nextConfig: NextConfig = {
},
async rewrites() {
return [
// API proxy for backend calls
// API proxy for backend calls (excluding Next.js API routes)
{
source: "/api/:path*",
source: "/api/:path((?!config|auth).*)*",
destination: `${process.env.BACKEND_URL || 'http://localhost:8000'}/api/:path*`,
},
{