Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Move rewrites to separate vercel config
Tomas Valentae7d46b453d38
diff --git a/apps/dashboard/next.config.js b/apps/dashboard/next.config.jsindex 6aecb1ebf..c26ff040c 100644--- a/apps/dashboard/next.config.js+++ b/apps/dashboard/next.config.js@@ -7,21 +7,10 @@ const nextConfig = {{source: '/ingest/:path*',destination: 'https://app.posthog.com/:path*',- basePath: false,},{source: '/',- destination: '/settings',- },- {- source: '/',- destination: process.env.NEXT_PUBLIC_LANDING_PAGE_URL || '/',- basePath: false,- },- {- source: '/docs',- destination: process.env.NEXT_PUBLIC_DOCS_URL || '/',- basePath: false,+ destination: '/docs',},]},@@ -35,34 +24,34 @@ module.exports = nextConfigconst { withSentryConfig } = require('@sentry/nextjs')module.exports = withSentryConfig(- module.exports,- {- // For all available options, see:- // https://github.com/getsentry/sentry-webpack-plugin#options+ module.exports,+ {+ // For all available options, see:+ // https://github.com/getsentry/sentry-webpack-plugin#options- // Suppresses source map uploading logs during build- silent: true,+ // Suppresses source map uploading logs during build+ silent: true,- org: 'devbook-7f',- project: 'agent-dashboard',- },- {- // For all available options, see:- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/+ org: 'devbook-7f',+ project: 'agent-dashboard',+ },+ {+ // For all available options, see:+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/- // Upload a larger set of source maps for prettier stack traces (increases build time)- widenClientFileUpload: true,+ // Upload a larger set of source maps for prettier stack traces (increases build time)+ widenClientFileUpload: true,- // Transpiles SDK to be compatible with IE11 (increases bundle size)- transpileClientSDK: true,+ // Transpiles SDK to be compatible with IE11 (increases bundle size)+ transpileClientSDK: true,- // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)- tunnelRoute: '/monitoring',+ // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)+ tunnelRoute: '/monitoring',- // Hides source maps from generated client bundles- hideSourceMaps: true,+ // Hides source maps from generated client bundles+ hideSourceMaps: true,- // Automatically tree-shake Sentry logger statements to reduce bundle size- disableLogger: true,- }- )+ // Automatically tree-shake Sentry logger statements to reduce bundle size+ disableLogger: true,+ }+)diff --git a/apps/dashboard/pages/sign.tsx b/apps/dashboard/pages/sign.tsxindex 37c671d97..1ecc4cb02 100644--- a/apps/dashboard/pages/sign.tsx+++ b/apps/dashboard/pages/sign.tsx@@ -1,9 +1,9 @@import { useRouter } from 'next/router'import { useSessionContext, useSupabaseClient, useUser } from '@supabase/auth-helpers-react'import { useEffect, useState } from 'react'+import { Github } from 'lucide-react'import Spinner from 'components/Spinner'-import { Github } from 'lucide-react'function SignIn() {const supabaseClient = useSupabaseClient()diff --git a/apps/docs/.gitignore b/apps/docs/.gitignorenew file mode 100644index 000000000..142621f57--- /dev/null+++ b/apps/docs/.gitignore@@ -0,0 +1,45 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+/node_modules+/test_python/test_python/server/node_modules+/.pnp+.pnp.js++# testing+/coverage++# next.js+/.next/+/out/++# production+/build++# misc+.DS_Store+*.pem++# debug+npm-debug.log*+yarn-debug.log*+yarn-error.log*+.pnpm-debug.log*++.env+# local env files+.env*.local++# vercel+.vercel++# typescript+*.tsbuildinfo+next-env.d.ts++vale-styles++.idea/++# Sentry Auth Token+.sentryclircdiff --git a/apps/docs/DEV.md b/apps/docs/DEV.mdindex bb1e9977f..4262d0a84 100644--- a/apps/docs/DEV.md+++ b/apps/docs/DEV.md@@ -3,4 +3,6 @@- Add system for highlighting specific lines from code snippets- Improve DX by watching the snippet files for changes and reloading nextjs- Make search appear faster-- Show the substring that matched the search in the results\ No newline at end of file+- Show the substring that matched the search in the results+- Check nextjs build config for improvements+- Update packages in dashboard\ No newline at end of filediff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 57e9dd011..2d615d820 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -17,6 +17,16 @@ const withMDX = nextMDX({const nextConfig = {pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],basePath: '/docs',+ async redirects() {+ return [+ {+ source: '/',+ destination: '/docs',+ basePath: false,+ permanent: false+ }+ ]+}}export default withSearch(withMDX(nextConfig))diff --git a/vercel.json b/vercel.jsonnew file mode 100644index 000000000..d1e684034--- /dev/null+++ b/vercel.json@@ -0,0 +1,19 @@+{+ "github": {+ "silent": true+ },+ "rewrites": [+ {+ "source": "/",+ "destination": "https://silly-badge-900014.framer.app"+ },+ {+ "source": "/docs(/.*)?",+ "destination": "https://e2b-docs.vercel.app/docs$1"+ },+ {+ "source": "/dashboard(/.*)?",+ "destination": "https://e2b-dashboard.vercel.app/dashboard$1"+ }+ ]+}\ No newline at end of file