Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix root redirects

Jakub Novakb62373b1f86a
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 59ccfac13..b957ad55d 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -64,17 +64,7 @@ const nextConfig = {
{ source: '/:path*', destination: '/_404/:path*' },
]
}
- },
- async redirects() {
- return [
- {
- source: '/',
- destination: '/dashboard',
- permanent: false,
- basePath: false,
- },
- ]
- },
+ }
}
export default withSearch(
diff --git a/apps/web/src/pages/_404/[...path].tsx b/apps/web/src/pages/_404/[...path].tsx
index 3be8c9c6f..ea507a364 100644
--- a/apps/web/src/pages/_404/[...path].tsx
+++ b/apps/web/src/pages/_404/[...path].tsx
@@ -4,7 +4,7 @@ import { GetServerSideProps } from 'next'
export const getServerSideProps: GetServerSideProps = async () => {
return {
redirect: {
- destination: '/',
+ destination: '/dashboard',
permanent: false,
},
}