()
| 440 | const caPath = path.resolve(caEnv); |
| 441 | if (fs.existsSync(caPath)) { |
| 442 | opts.ca = fs.readFileSync(caPath); |
| 443 | } else { |
| 444 | console.warn('[Server] PRINTVENTORY_TLS_CA not found:', caPath); |
| 445 | } |
| 446 | } |
| 447 | return opts; |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * Proxy Puter AI chat requests server-side to avoid CORS (api.puter.com only allows https://puter.com). |
| 452 | * The browser still uses Puter.js for authentication/captcha; only the drivers/call is proxied. |
no outgoing calls
no test coverage detected