Roo-Code/apps/web-roo-code/next.config.ts
Roo Code ef3fd5b20e fix: internationalize token stats tooltip and add tooltip for API Request without price
- Added i18n translations for "Input" and "Output" in chat.json
- Updated ChatRow.tsx to use translated strings in token stats tooltip
- Added tooltip to "API Request" text when there are token stats but no price
- Ensures token information is always accessible via tooltip hover
2025-09-12 01:57:49 +00:00

34 lines
851 B
TypeScript

import type { NextConfig } from "next"
const nextConfig: NextConfig = {
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,
},
// Redirect cloud waitlist to Notion page
{
source: "/cloud-waitlist",
destination: "https://roo-code.notion.site/238fd1401b0a8087b858e1ad431507cf?pvs=105",
permanent: false,
},
]
},
}
export default nextConfig