Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add dashboard redirects

Tomas Valenta465971f1c565
diff --git a/apps/dashboard/next.config.js b/apps/dashboard/next.config.js
index 80b0cf0a1..c2d3fdffe 100644
--- a/apps/dashboard/next.config.js
+++ b/apps/dashboard/next.config.js
@@ -1,12 +1,21 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
swcMinify: true,
+ basePath: '/dashboard',
async rewrites() {
return [
{
source: '/ingest/:path*',
destination: 'https://app.posthog.com/:path*',
},
+ {
+ source: '/',
+ destination: process.env.NEXT_LANGING_PAGE_URL || '/',
+ },
+ {
+ source: '/docs',
+ destination: process.env.NEXT_DOCS_URL || '/',
+ },
]
},
}