File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { replaceUrls } from '@/utils/replaceUrls'
3
3
import {
4
4
landingPageHostname ,
5
5
landingPageFramerHostname ,
6
- blogFramerHostname ,
7
6
} from '@/app/hostnames'
8
7
9
8
export async function middleware ( req : NextRequest ) : Promise < NextResponse > {
@@ -42,19 +41,15 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
42
41
url . hostname = landingPageHostname
43
42
}
44
43
44
+ if ( url . pathname . startsWith ( '/blog' ) ) {
45
+ url . hostname = landingPageHostname
46
+ }
47
+
45
48
// TODO: Not on the new landing page hosting yet
46
49
if ( url . pathname . startsWith ( '/ai-agents' ) ) {
47
50
url . hostname = landingPageFramerHostname
48
51
}
49
52
50
- if ( url . pathname === '/blog' || url . pathname === '/blog/' ) {
51
- url . pathname = '/'
52
- url . hostname = blogFramerHostname
53
- }
54
- if ( url . pathname . startsWith ( '/blog' ) ) {
55
- url . hostname = blogFramerHostname
56
- }
57
-
58
53
const res = await fetch ( url . toString ( ) , { ...req } )
59
54
60
55
const htmlBody = await res . text ( )
You can’t perform that action at this time.
0 commit comments