Skip to content

Commit 01eef2b

Browse files
authored
Bring back #4128 (#4292)
1 parent 6baf28c commit 01eef2b

File tree

87 files changed

+13048
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+13048
-451
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"esbenp.prettier-vscode",
77
"csstools.postcss",
88
"bradlc.vscode-tailwindcss",
9-
"connor4312.esbuild-problem-matchers"
9+
"connor4312.esbuild-problem-matchers",
10+
"yoavbls.pretty-ts-errors"
1011
]
1112
}

apps/web-evals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@roo-code/config-typescript": "workspace:^",
5252
"@tailwindcss/postcss": "^4",
5353
"@types/ps-tree": "^1.1.6",
54-
"@types/react": "^18.3.18",
54+
"@types/react": "^18.3.23",
5555
"@types/react-dom": "^18.3.5",
5656
"tailwindcss": "^4"
5757
}

apps/web-roo-code/.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PostHog Analytics Configuration
2+
# Replace these values with your actual PostHog API key and host
3+
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_api_key_here
4+
NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
5+
6+
# Basin Form Endpoint for Static Form Submissions
7+
# Replace this with your actual Basin form endpoint (e.g., https://usebasin.com/f/your-form-id)
8+
NEXT_PUBLIC_BASIN_ENDPOINT=https://usebasin.com/f/your-form-id-here
9+
10+
TURSO_CONNECTION_URL=libsql://development-roo-code.aws-us-east-1.turso.io
11+
TURSO_AUTH_TOKEN=your-auth-token-here

apps/web-roo-code/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
!.env.example
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts

apps/web-roo-code/.gitkeep

Whitespace-only changes.

apps/web-roo-code/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/web-roo-code/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from "drizzle-kit"
2+
3+
const dialect = process.env.BENCHMARKS_DB_PATH ? "sqlite" : "turso"
4+
5+
const dbCredentials = process.env.BENCHMARKS_DB_PATH
6+
? { url: process.env.BENCHMARKS_DB_PATH }
7+
: { url: process.env.TURSO_CONNECTION_URL!, authToken: process.env.TURSO_AUTH_TOKEN! }
8+
9+
export default defineConfig({
10+
out: "./drizzle",
11+
schema: "./src/db/schema.ts",
12+
dialect,
13+
dbCredentials,
14+
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { nextJsConfig } from "@roo-code/config-eslint/next-js"
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default [...nextJsConfig]

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { NextConfig } from "next"
2+
3+
const nextConfig: NextConfig = {
4+
webpack: (config) => {
5+
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
6+
return config
7+
},
8+
async redirects() {
9+
return [
10+
// Redirect www to non-www
11+
{
12+
source: "/:path*",
13+
has: [{ type: "host", value: "www.roocode.com" }],
14+
destination: "https://roocode.com/:path*",
15+
permanent: true,
16+
},
17+
// Redirect HTTP to HTTPS
18+
{
19+
source: "/:path*",
20+
has: [{ type: "header", key: "x-forwarded-proto", value: "http" }],
21+
destination: "https://roocode.com/:path*",
22+
permanent: true,
23+
},
24+
]
25+
},
26+
}
27+
28+
export default nextConfig

0 commit comments

Comments
 (0)