mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
- Add automaticVercelMonitors: false to Next.js configs for web-evals and web-roo-code - Create .vercelignore files to prevent accidental Vercel deployments - Add comprehensive deployment documentation with Vercel warnings Addresses comment: https://github.com/RooCodeInc/Roo-Code-Cloud/pull/190#issuecomment-3029245688 ✅ Linting passes ✅ Type checking passes ✅ No breaking changes to existing functionality
30 lines
759 B
TypeScript
30 lines
759 B
TypeScript
import type { NextConfig } from "next"
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Disable Vercel automatic monitoring to prevent accidental deployments
|
|
automaticVercelMonitors: false,
|
|
webpack: (config) => {
|
|
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
|
|
return config
|
|
},
|
|
async redirects() {
|
|
return [
|
|
// Redirect www to non-www
|
|
{
|
|
source: "/:path*",
|
|
has: [{ type: "host", value: "www.roocode.com" }],
|
|
destination: "https://roocode.com/:path*",
|
|
permanent: true,
|
|
},
|
|
// Redirect HTTP to HTTPS
|
|
{
|
|
source: "/:path*",
|
|
has: [{ type: "header", key: "x-forwarded-proto", value: "http" }],
|
|
destination: "https://roocode.com/:path*",
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|