Skip to content

Commit fd46e31

Browse files
authored
Update next.js (#11108)
1 parent cc86049 commit fd46e31

39 files changed

Lines changed: 868 additions & 482 deletions

apps/web-evals/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/dev/types/routes.d.ts"
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/web-evals/next.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import type { NextConfig } from "next"
22

33
const nextConfig: NextConfig = {
4-
webpack: (config) => {
5-
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
6-
return config
7-
},
4+
turbopack: {},
85
}
96

107
export default nextConfig

apps/web-evals/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"type": "module",
55
"scripts": {
6-
"lint": "next lint --max-warnings 0",
6+
"lint": "eslint src --ext=ts,tsx --max-warnings=0",
77
"check-types": "tsc -b",
88
"dev": "scripts/check-services.sh && next dev -p 3446",
99
"format": "prettier --write src",
@@ -27,15 +27,15 @@
2727
"@radix-ui/react-tabs": "^1.1.3",
2828
"@radix-ui/react-tooltip": "^1.2.8",
2929
"@roo-code/evals": "workspace:^",
30-
"@roo-code/types": "workspace:^",
30+
"@roo-code/types": "^1.108.0",
3131
"@tanstack/react-query": "^5.69.0",
3232
"archiver": "^7.0.1",
3333
"class-variance-authority": "^0.7.1",
3434
"clsx": "^2.1.1",
3535
"cmdk": "^1.1.0",
3636
"fuzzysort": "^3.1.0",
3737
"lucide-react": "^0.518.0",
38-
"next": "~15.2.8",
38+
"next": "^16.1.6",
3939
"next-themes": "^0.4.6",
4040
"p-map": "^7.0.3",
4141
"react": "^18.3.1",

apps/web-roo-code/next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import path from "path"
12
import type { NextConfig } from "next"
23

34
const nextConfig: NextConfig = {
4-
webpack: (config) => {
5-
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
6-
return config
5+
turbopack: {
6+
root: path.join(__dirname, "../.."),
77
},
88
async redirects() {
99
return [

apps/web-roo-code/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"type": "module",
55
"scripts": {
6-
"lint": "next lint --max-warnings 0",
6+
"lint": "eslint src --ext=ts,tsx --max-warnings=0",
77
"check-types": "tsc --noEmit",
88
"dev": "next dev",
99
"build": "next build",
@@ -12,22 +12,22 @@
1212
"clean": "rimraf .next .turbo"
1313
},
1414
"dependencies": {
15-
"@radix-ui/react-dialog": "^1.1.14",
16-
"@radix-ui/react-slot": "^1.2.3",
15+
"@radix-ui/react-dialog": "^1.1.15",
16+
"@radix-ui/react-slot": "^1.2.4",
1717
"@roo-code/evals": "workspace:^",
18-
"@roo-code/types": "workspace:^",
19-
"@tanstack/react-query": "^5.79.0",
20-
"@vercel/og": "^0.6.2",
18+
"@roo-code/types": "^1.108.0",
19+
"@tanstack/react-query": "^5.90.20",
20+
"@vercel/og": "^0.8.6",
2121
"class-variance-authority": "^0.7.1",
2222
"clsx": "^2.1.1",
2323
"embla-carousel-auto-scroll": "^8.6.0",
2424
"embla-carousel-autoplay": "^8.6.0",
2525
"embla-carousel-react": "^8.6.0",
26-
"framer-motion": "12.15.0",
27-
"lucide-react": "^0.518.0",
28-
"next": "~15.2.8",
26+
"framer-motion": "^12.29.2",
27+
"lucide-react": "^0.563.0",
28+
"next": "^16.1.6",
2929
"next-themes": "^0.4.6",
30-
"posthog-js": "^1.248.1",
30+
"posthog-js": "^1.336.4",
3131
"react": "^18.3.1",
3232
"react-cookie-consent": "^9.0.0",
3333
"react-dom": "^18.3.1",
@@ -36,21 +36,21 @@
3636
"recharts": "^2.15.3",
3737
"rehype-raw": "^7.0.0",
3838
"remark-gfm": "^4.0.1",
39-
"tailwind-merge": "^3.3.0",
39+
"tailwind-merge": "^3.4.0",
4040
"tailwindcss-animate": "^1.0.7",
4141
"tldts": "^6.1.86",
4242
"zod": "^3.25.61"
4343
},
4444
"devDependencies": {
4545
"@roo-code/config-eslint": "workspace:^",
4646
"@roo-code/config-typescript": "workspace:^",
47-
"@tailwindcss/typography": "^0.5.16",
47+
"@tailwindcss/typography": "^0.5.19",
4848
"@types/node": "20.x",
4949
"@types/react": "^18.3.23",
5050
"@types/react-dom": "^18.3.7",
51-
"autoprefixer": "^10.4.21",
51+
"autoprefixer": "^10.4.23",
5252
"next-sitemap": "^4.2.3",
53-
"postcss": "^8.5.4",
53+
"postcss": "^8.5.6",
5454
"tailwindcss": "^3.4.17"
5555
}
5656
}

apps/web-roo-code/src/app/cloud/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { SEO } from "@/lib/seo"
2222
import { ogImageUrl } from "@/lib/og"
2323
import { EXTERNAL_LINKS } from "@/lib/constants"
2424
// Workaround for next/image choking on these for some reason
25-
import screenshotDark from "/public/heroes/cloud-screen.png"
25+
import screenshotDark from "../../../public/heroes/cloud-screen.png"
2626

2727
const TITLE = "Roo Code Cloud"
2828
const DESCRIPTION =

apps/web-roo-code/src/app/pr-fixer/content-a.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type AgentPageContent } from "@/app/shared/agent-page-content"
22
import Link from "next/link"
33

44
// Workaround for next/image choking on these for some reason
5-
import hero from "/public/heroes/agent-pr-fixer.png"
5+
import hero from "../../../public/heroes/agent-pr-fixer.png"
66

77
// Re-export for convenience
88
export type { AgentPageContent }

apps/web-roo-code/src/app/provider/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default function ProviderPage() {
252252
{faqs.map((faq, index) => (
253253
<div key={index} className="rounded-2xl border border-border bg-card p-6">
254254
<h3 className="font-semibold">{faq.question}</h3>
255-
<p className="mt-2 text-sm text-muted-foreground">{faq.answer}</p>
255+
<div className="mt-2 text-sm text-muted-foreground">{faq.answer}</div>
256256
</div>
257257
))}
258258
</div>

apps/web-roo-code/src/app/reviewer/content-b.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type AgentPageContent } from "@/app/shared/agent-page-content"
22

33
// Workaround for next/image choking on these for some reason
4-
import hero from "/public/heroes/agent-reviewer.png"
4+
import hero from "../../../public/heroes/agent-reviewer.png"
55

66
// Re-export for convenience
77
export type { AgentPageContent }

apps/web-roo-code/src/app/reviewer/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type AgentPageContent } from "@/app/shared/agent-page-content"
22

33
// Workaround for next/image choking on these for some reason
4-
import hero from "/public/heroes/agent-reviewer.png"
4+
import hero from "../../../public/heroes/agent-reviewer.png"
55

66
// Re-export for convenience
77
export type { AgentPageContent }

0 commit comments

Comments
 (0)