Skip to content

Commit 5b4df1b

Browse files
committed
chore(docs): move site to docs.objectos.ai
1 parent 3a96fc9 commit 5b4df1b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/docs/middleware.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function getPreferredLanguage(request: NextRequest): string {
101101
* - Stores language preference as a cookie
102102
*/
103103
export default function middleware(request: NextRequest) {
104-
// Canonical domain redirect: www.objectos.app -> www.objectos.ai (permanent).
104+
// Canonical domain redirect: legacy hosts -> docs.objectos.ai (permanent).
105105
const host = request.headers.get('host');
106-
if (host === 'www.objectos.app') {
106+
if (host === 'www.objectos.ai' || host === 'www.objectos.app') {
107107
const target = new URL(request.url);
108108
target.protocol = 'https:';
109-
target.host = 'www.objectos.ai';
109+
target.host = 'docs.objectos.ai';
110110
target.port = '';
111111
return NextResponse.redirect(target, 308);
112112
}

apps/docs/wrangler.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"enabled": true
1616
},
1717
"routes": [
18-
{ "pattern": "www.objectos.ai", "custom_domain": true },
19-
{ "pattern": "www.objectos.ai/*", "zone_name": "objectos.ai" },
18+
{ "pattern": "docs.objectos.ai", "custom_domain": true },
19+
{ "pattern": "docs.objectos.ai/*", "zone_name": "objectos.ai" },
2020
{ "pattern": "www.objectos.app/*", "zone_name": "objectos.app" }
2121
]
2222
}

0 commit comments

Comments
 (0)