Skip to content

Commit 16e36c9

Browse files
authored
Fix Freebuff web build (#609)
1 parent 3b2faca commit 16e36c9

6 files changed

Lines changed: 24 additions & 26 deletions

File tree

bun.lock

Lines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

freebuff/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"clsx": "^2.1.1",
2222
"framer-motion": "^11.13.3",
2323
"lucide-react": "^0.487.0",
24-
"next": "15.5.11",
24+
"next": "15.5.16",
2525
"next-auth": "^4.24.11",
2626
"next-themes": "^0.4.6",
2727
"pino": "^9.6.0",

freebuff/web/src/app/home-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const faqs = [
2626
{
2727
question: 'What models do you use?',
2828
answer:
29-
'Pick DeepSeek V4 Pro (default and smartest, but its API collects data for training) or Kimi K2.6 (no data retention) as the main coding agent. Gemini 3.1 Flash Lite for finding files and research.\n\nConnect your ChatGPT subscription to unlock GPT-5.4 for deep thinking.',
29+
'You can choose from DeepSeek V4 Pro, Kimi K2.6, and MiniMax M2.7.\n\nSession limits: DeepSeek and Kimi share 5 one-hour premium sessions per day. MiniMax has unlimited sessions.\n\n- DeepSeek V4 Pro: smartest. Its API collects data for training.\n- Kimi K2.6: balanced.\n- MiniMax M2.7: fastest.\n\nGemini 3.1 Flash Lite handles file finding and research. Connect your ChatGPT subscription to unlock GPT-5.4 for deep thinking.',
3030
},
3131
{
3232
question: 'Which countries is Freebuff available in?',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@types/react": "19.2.14",
5151
"@types/react-dom": "19.2.3",
5252
"baseline-browser-mapping": "^2.9.14",
53+
"caniuse-lite": "^1.0.30001792",
5354
"zod": "^4.2.1",
5455
"signal-exit": "3.0.7"
5556
},

packages/internal/src/env.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { serverEnvSchema, serverProcessEnv } from './env-schema'
55
const isCI = process.env.CI === 'true' || process.env.CI === '1'
66
const envInput = { ...serverProcessEnv }
77

8-
if (isCI) {
9-
const ensureEnvDefault = (key: string, value: string) => {
10-
if (!process.env[key]) {
11-
process.env[key] = value
12-
}
13-
envInput[key as keyof typeof envInput] = process.env[key]
8+
const ensureEnvDefault = (key: keyof typeof envInput, value: string) => {
9+
if (!process.env[key]) {
10+
process.env[key] = value
1411
}
12+
envInput[key] = process.env[key]
13+
}
1514

15+
if (isCI) {
1616
ensureEnvDefault('OPEN_ROUTER_API_KEY', 'test')
1717
ensureEnvDefault('OPENAI_API_KEY', 'test')
1818
ensureEnvDefault('ANTHROPIC_API_KEY', 'test')

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"geoip-lite": "^2.0.0",
7474
"lucide-react": "^0.487.0",
7575
"mermaid": "^11.8.1",
76-
"next": "15.5.11",
76+
"next": "15.5.16",
7777
"next-auth": "^4.24.11",
7878
"next-contentlayer2": "^0.5.8",
7979
"next-themes": "^0.4.6",

0 commit comments

Comments
 (0)