Roo-Code/apps/web-roo-code/next.config.ts
Roo Code 495e25042d feat: implement Vercel deployment fixes
- 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
2025-07-02 20:50:51 +00:00

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