Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix redirects on docs.cua.ai

Sarina Li1254f35aed85
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 472674c451..38bc191ead 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -24,6 +24,20 @@ const config = {
basePath: false, // Important: this bypasses the basePath
permanent: false,
},
+ // Redirect old docs.cua.ai URLs to cua.ai/docs with 301 for SEO
+ // This handles URLs that Google has indexed from the old domain
+ {
+ source: '/:path*',
+ has: [
+ {
+ type: 'host',
+ value: 'docs.cua.ai',
+ },
+ ],
+ destination: 'https://cua.ai/docs/:path*',
+ permanent: true, // 301 redirect to preserve SEO authority
+ basePath: false,
+ },
];
},
images: {