mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-10 10:09:37 +00:00
Merge pull request #197 from johnhenry/johnhenry/env-claude-path
Feat: Use environment variable for Claude path
This commit is contained in:
@@ -235,7 +235,11 @@ async function spawnClaude(command, options = {}, ws) {
|
|||||||
console.log('🔍 Full command args:', JSON.stringify(args, null, 2));
|
console.log('🔍 Full command args:', JSON.stringify(args, null, 2));
|
||||||
console.log('🔍 Final Claude command will be: claude ' + args.join(' '));
|
console.log('🔍 Final Claude command will be: claude ' + args.join(' '));
|
||||||
|
|
||||||
const claudeProcess = spawnFunction('claude', args, {
|
// Use Claude CLI from environment variable or default to 'claude'
|
||||||
|
const claudePath = process.env.CLAUDE_CLI_PATH || 'claude';
|
||||||
|
console.log('🔍 Using Claude CLI path:', claudePath);
|
||||||
|
|
||||||
|
const claudeProcess = spawnFunction(claudePath, args, {
|
||||||
cwd: workingDir,
|
cwd: workingDir,
|
||||||
stdio: ['pipe', 'pipe', 'pipe'],
|
stdio: ['pipe', 'pipe', 'pipe'],
|
||||||
env: { ...process.env } // Inherit all environment variables
|
env: { ...process.env } // Inherit all environment variables
|
||||||
|
|||||||
Reference in New Issue
Block a user