Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fetch changelog route from landing page website
Vasek Mlejnsky08af170c1441
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.tsindex 4da0ab6e2..b30e486f0 100644--- a/apps/web/src/middleware.ts+++ b/apps/web/src/middleware.ts@@ -4,7 +4,6 @@ import {landingPageHostname,landingPageFramerHostname,blogFramerHostname,- changelogFramerHostname,} from '@/app/hostnames'export async function middleware(req: NextRequest): Promise<NextResponse> {@@ -39,6 +38,10 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {url.hostname = landingPageHostname}+ if (url.pathname.startsWith('/changelog')) {+ url.hostname = landingPageHostname+ }+// TODO: Not on the new landing page hosting yetif (url.pathname.startsWith('/ai-agents')) {url.hostname = landingPageFramerHostname@@ -52,13 +55,13 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {url.hostname = blogFramerHostname}- if (url.pathname === '/changelog' || url.pathname === '/changelog/') {- url.pathname = '/'- url.hostname = changelogFramerHostname- }- if (url.pathname.startsWith('/changelog')) {- url.hostname = changelogFramerHostname- }+ // if (url.pathname === '/changelog' || url.pathname === '/changelog/') {+ // url.pathname = '/'+ // url.hostname = changelogFramerHostname+ // }+ // if (url.pathname.startsWith('/changelog')) {+ // url.hostname = changelogFramerHostname+ // }const res = await fetch(url.toString(), { ...req })