All checks were successful
Deploy / deploy (push) Successful in 4m3s
ElevenLabs Cloudflare returns 302 to a region-restricted help page when requested from a Russian IP. Tablet host (.60) is in RU, so the Stage 2 call was failing with 502 upstream. Fix: use https-proxy-agent when ELEVENLABS_PROXY (or generic HTTPS_PROXY / HTTP_PROXY) env var is set. Tinyproxy on .103 (non-RU egress host) acts as the tunnel. - package.json: add https-proxy-agent ^7.0.6 - app/api/voice/tts: switch from global fetch to node:https with explicit Agent (either direct or HttpsProxyAgent). Still streams MP3 back via Readable.toWeb so Next.js Response pipes it to the browser as audio arrives. Operational: set ELEVENLABS_PROXY=http://192.168.31.103:8888 in tablet.env after bringing tinyproxy up on .103.
31 lines
661 B
JSON
31 lines
661 B
JSON
{
|
|
"name": "smart-home-tablet",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start -p 3000",
|
|
"lint": "next lint"
|
|
},
|
|
"dependencies": {
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^11.1.7",
|
|
"googleapis": "^171.4.0",
|
|
"https-proxy-agent": "^7.0.6",
|
|
"lucide-react": "^0.376.0",
|
|
"next": "14.2.3",
|
|
"react": "^18",
|
|
"react-dom": "^18"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/react": "^18",
|
|
"@types/react-dom": "^18",
|
|
"autoprefixer": "^10.0.1",
|
|
"postcss": "^8",
|
|
"tailwindcss": "^3.4.1",
|
|
"typescript": "^5"
|
|
}
|
|
}
|