Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

Minimal self-host fix: dashboard rewrites and NEXT_PUBLIC_API_URL only (#1241)

devin-ai-integration[bot]5d9718e5a660
diff --git a/app/compose.yaml b/app/compose.yaml
index 765c2899..a9dd8609 100644
--- a/app/compose.yaml
+++ b/app/compose.yaml
@@ -46,6 +46,11 @@ services:
build:
context: ./dashboard
dockerfile: Dockerfile
+ args:
+ NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
+ NEXT_PUBLIC_SUPABASE_ANON_KEY: ${NEXT_PUBLIC_SUPABASE_ANON_KEY}
+ NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
+ NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ${NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY}
ports:
- '3000:3000'
environment:
@@ -56,6 +61,7 @@ services:
SUPABASE_PROJECT_ID: ${SUPABASE_PROJECT_ID}
# Application URLs
+ NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
NEXT_PUBLIC_APP_URL: ${APP_URL}
NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL}
diff --git a/app/dashboard/next.config.js b/app/dashboard/next.config.js
index 4808e587..d780cb2d 100644
--- a/app/dashboard/next.config.js
+++ b/app/dashboard/next.config.js
@@ -83,6 +83,14 @@ const nextConfig = {
source: '/functions/v1/:path*',
destination: 'https://qjkcnuesiiqjpohzdjjm.supabase.co/functions/v1/:path*',
},
+ {
+ source: '/auth/:path*',
+ destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000'}/auth/:path*`,
+ },
+ {
+ source: '/opsboard/:path*',
+ destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000'}/opsboard/:path*`,
+ },
{
source: '/logs/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL || 'https://api.agentops.ai'}/v3/logs/:path*`,