Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Handle cookbook route on the landing page

Vasek Mlejnsky703d18240137
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index 778ba888d..6832f774a 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -35,6 +35,10 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
url.hostname = landingPageHostname
}
+ if (url.pathname.startsWith('/cookbooks')) {
+ url.hostname = landingPageHostname
+ }
+
// TODO: Not on the new landing page hosting yet
if (url.pathname.startsWith('/ai-agents')) {
url.hostname = landingPageFramerHostname