Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/anujpatel04_protofolio.json
T
OpenCode 68a9071cf1 feat: reconcile local master with origin (exa/hot-platform hunters, leaks ledger, latest results)
Local branch had diverged from origin/master (sibling commits on the same base). Rewrote local history linearly on top of origin/master, folding in all local content: exa/hot-platform discovery hunters, leaks ledger, nightly sweep orchestrator, updated .gitignore and skill docs, plus the latest hunt output and vault state. Remote-only files (vault keys, channel scripts) were restored rather than dropped, so the resulting tree is a full union of both sides.
2026-08-07 12:53:47 +08:00

1 line
1.4 KiB
JSON

{"repo": "anujpatel04/protofolio", "files": {"inject-config.js": {"6ea43de56d4153799677046cbb148db800c5ae21": {"t": 1786068266.8065996, "n": 1167, "h": "2de55f5ab80b2cad", "c": "#!/usr/bin/env node\n/**\n * Script to inject DeepSeek API key from environment variable into HTML\n * This runs before serving the static site on Railway\n */\n\nconst fs = require('fs');\nconst path = require('path');\n\nconst apiKey = process.env.DEEPSEEK_API_KEY || '';\n\nif (!apiKey) {\n console.warn('⚠️ DEEPSEEK_API_KEY environment variable not set. Chatbot will not work.');\n console.warn(' Set it in Railway: Settings → Variables → Add DEEPSEEK_API_KEY');\n} else {\n console.log('✅ DEEPSEEK_API_KEY found, injecting into HTML...');\n}\n\n// Read index.html\nconst htmlPath = path.join(__dirname, 'index.html');\nlet htmlContent = fs.readFileSync(htmlPath, 'utf8');\n\n// Replace the placeholder API key with the actual one\nconst placeholder = \"window.DEEPSEEK_API_KEY = '';\";\nconst replacement = `window.DEEPSEEK_API_KEY = '${apiKey}';`;\n\nif (htmlContent.includes(placeholder)) {\n htmlContent = htmlContent.replace(placeholder, replacement);\n fs.writeFileSync(htmlPath, htmlContent, 'utf8');\n console.log('✅ API key injected successfully');\n} else {\n console.warn('⚠️ Could not find placeholder in HTML. Make sure the script tag exists.');\n}\n\n\n\n\n\n\n\n\n\n\n"}}}}