Roo-Code/apps/web-roo-code/next.config.ts
2026-01-30 02:08:45 -08:00

39 lines
942 B
TypeScript

import path from "path"
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
turbopack: {
root: path.join(__dirname, "../.."),
},
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,
},
// Redirect cloud waitlist to Notion page (kept for extension compatibility)
{
source: "/cloud-waitlist",
destination: "https://roo-code.notion.site/238fd1401b0a8087b858e1ad431507cf?pvs=105",
permanent: false,
},
{
source: "/provider/pricing",
destination: "/provider",
permanent: true,
},
]
},
}
export default nextConfig