From 8e23e7d791fa578fa608bc87fb960d89cfe6ff49 Mon Sep 17 00:00:00 2001 From: Toshiyuki Tanaka <86086730+toshitanaa@users.noreply.github.com> Date: Fri, 18 Jul 2025 09:21:12 -0700 Subject: [PATCH] fix: Use containerEnv for environment variables in devcontainer.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ca703862..a5a8742c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,7 +41,7 @@ "source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume", "source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume" ], - "remoteEnv": { + "containerEnv": { "NODE_OPTIONS": "--max-old-space-size=4096", "CLAUDE_CONFIG_DIR": "/home/node/.claude", "POWERLEVEL9K_DISABLE_GITSTATUS": "true"