Skip to content

armgit / E2B

Public Imported from GitHub
0

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

fetch changelog route from landing page website

Vasek Mlejnsky08af170c1441
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index 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 yet
if (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 })