mirror of
https://github.com/anthropics/claude-code.git
synced 2026-02-19 04:27:33 -08:00
fix: Use containerEnv for environment variables in devcontainer.json
When launching dev containers via scripts (not through VS Code), remoteEnv does not properly set environment variables. This causes NODE_OPTIONS, CLAUDE_CONFIG_DIR, and POWERLEVEL9K_DISABLE_GITSTATUS to be undefined. Changed remoteEnv to containerEnv to ensure environment variables are correctly set regardless of how the container is launched. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
"source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume",
|
"source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume",
|
||||||
"source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume"
|
"source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume"
|
||||||
],
|
],
|
||||||
"remoteEnv": {
|
"containerEnv": {
|
||||||
"NODE_OPTIONS": "--max-old-space-size=4096",
|
"NODE_OPTIONS": "--max-old-space-size=4096",
|
||||||
"CLAUDE_CONFIG_DIR": "/home/node/.claude",
|
"CLAUDE_CONFIG_DIR": "/home/node/.claude",
|
||||||
"POWERLEVEL9K_DISABLE_GITSTATUS": "true"
|
"POWERLEVEL9K_DISABLE_GITSTATUS": "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user