Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix basePath in rewrites

Tomas Valentaa6046f6b7e5d
diff --git a/apps/dashboard/next.config.js b/apps/dashboard/next.config.js
index 48e609ac0..5b972ec34 100644
--- a/apps/dashboard/next.config.js
+++ b/apps/dashboard/next.config.js
@@ -7,14 +7,17 @@ const nextConfig = {
{
source: '/ingest/:path*',
destination: 'https://app.posthog.com/:path*',
+ basePath: false,
},
{
source: '/',
destination: process.env.NEXT_PUBLIC_LANDING_PAGE_URL || '/',
+ basePath: false,
},
{
source: '/docs',
destination: process.env.NEXT_PUBLIC_DOCS_URL || '/',
+ basePath: false,
},
]
},
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 31fab8cd9..57e9dd011 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -17,14 +17,6 @@ const withMDX = nextMDX({
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
basePath: '/docs',
- async rewrites() {
- return [
- {
- source: '/',
- destination: '/docs',
- },
- ]
- },
}
export default withSearch(withMDX(nextConfig))